I get the following errors after i added the commctrl.h.
INITCOMMONCONTROLSEX icex;
icex.dwSize = sizeof(icex);
icex.dwICC = ICC_TAB;
InitCommonControlsEx(&icex
Main.obj : error LNK2001: unresolved external symbol __imp__InitCommonControlsE
Debug/DlgApp.exe : fatal error LNK1120: 1 unresolved externals
Main Topics
Browse All Topics





by: tkirbyPosted on 2000-03-22 at 18:59:36ID: 2647545
Assuming that the "visible" box is checked in the tab control resource properties, then the most likely causes are...
);
1) you have not initialized the common controls dll properly
INITCOMMONCONTROLSEX icex;
icex.dwSize = sizeof(icex);
icex.dwICC = ICC_TAB_CLASSES;
InitCommonControlsEx(&icex
2) you have not inserted any tabs into the control. without this step you are trying to display an empty control, so you see nothing. use TabCtrl_InsertItem and/or TabCtrl_SetItem as needed to add tabs to the control.
does this help?