You use "WC_TABCONTROL" with CreateWindow. Here is a little example:Originally posted by SteveCRM
oh I entered comctrl32.lib not comctl32.lib thanks, now it runs....but how would I now show the tab control? like what should I enter into CreateWindow?
I suggest that you read all about tab controls from here; it'll help you a lot:PHP Code:CreateWindow(
WC_TABCONTROL, "",
WS_CHILD | WS_CLIPSIBLINGS | WS_VISIBLE,
0, 0, 100, 100,
hwndDlg, NULL, g_hinst, NULL
);
http://msdn.microsoft.com/library/de...Tab/Styles.asp
I have never used tab control because I always use propertysheet (which uses tab control itself) and I make different dialog box for each tab control.




Reply With Quote