Advertisement Jump to content


This topic is now archived and is closed to further replies.


win32: CreateDialogIndirect - Tabs

This topic is 5430 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

im wanting to use: CreateDialogIndirect for my tab control.... not i need to pass it a DLGTEMPLATE* which has something to do with a dialog box
HGLOBAL hglb = LoadResource(g_hinst, hrsrc); 
dlgPage = (DLGTEMPLATE*)LockResource(hglb);
i pretty much took it from the MS website, but dlgPage end up being NULL DLG_FIRST is a dialog resource, not sure if this is what its supposed to be. So if any one has done win32 tab dialog and knows whats wrong.... give me a buzz [edited by - supagu on March 7, 2004 10:35:22 PM]

Share this post

Link to post
Share on other sites
By ''win32 tab dialog'' do you mean a dialog box with a Tab Control defined on it (class == "SysTabControl32")? If so, have you ensured that you''ve called either InitCommonControls or InitCommonControlsEx and linked with "comctl32.lib". Other than that, check results using GetLastError and FormatMessage.


Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!