15,978
社区成员
发帖
与我相关
我的任务
分享
RECT rect;
TCITEM tci;
case WM_INITDIALOG:
GetClientRect(hChief, &rect);
hTable = CreateWindow(WC_TABCONTROL, "",
WS_VISIBLE | WS_TABSTOP| WS_CHILD | WS_THICKFRAME,
0, 0, rect.right/2, 2*rect.bottom/3,
hChief, NULL, hInst, NULL);
tci.mask = TCIF_TEXT;
tci.pszText = "标签1";
TabCtrl_InsertItem(hTable, 0, &tci);
tci.pszText = "标签2";
TabCtrl_InsertItem(hTable, 1, &tci);
hDlg = CreateDialog(hInst, (LPCSTR)IDD_TABLE1, hTable, (DLGPROC)AnodeProc);
break;