//...
m_tabCtrl.SetActiveTab(0);
//->tab
DLGCTLINFO dlgSizeInfo[] = {
//{ IDC_BLOCK_GROUP, ELASTICXY, 100 },//<- это зачем?
//{ IDC_BLOCK_LIST, ELASTICXY, 100 },//<- это зачем?
//{ IDD_TAB1_DIALOG, ELASTICXY, 100 },//<- это зачем?
{ IDC_TAB1, ELASTICXY, 100 },
{ IDOK, MOVEXY, 100 },
{ IDCANCEL, MOVEXY, 100 },
};
const DWORD numberofentries = sizeof dlgSizeInfo / sizeof DLGCTLINFO;
SetControlProperty(dlgSizeInfo, numberofentries);
//->Block
DLGCTLINFO dlgTAB1SizeInfo[] = {
{ IDC_BLOCK_GROUP, ELASTICXY, 100 },
{ IDC_BLOCK_LIST, ELASTICXY, 100 },
};
m_pBlockDialog->SetControlProperty(dlgTAB1SizeInfo, sizeof(dlgTAB1SizeInfo) / sizeof(DLGCTLINFO));
//->Object
DLGCTLINFO dlgTAB2SizeInfo[] = {
{ IDC_OBJECT_GROUP, ELASTICXY, 100 },
{ IDC_OBJECT_LIST, ELASTICXY, 100 },
};
m_pObjectDialog->SetControlProperty(dlgTAB2SizeInfo, sizeof(dlgTAB2SizeInfo) / sizeof(DLGCTLINFO));
//->Controls
DLGCTLINFO dlgTAB3SizeInfo[] = {
{ IDC_CONTROLS_LABEL1, ELASTICX, 50 },
{ IDC_CONTROLS_GROUP, ELASTICXY, 100 },
{ IDC_COLOR_COMBO, ELASTICX, 50 },
};
m_pControlsDialog->SetControlProperty(dlgTAB3SizeInfo, sizeof(dlgTAB3SizeInfo) / sizeof(DLGCTLINFO));
return TRUE;