• Advertisement

Archived

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

win32: CreateDialogIndirect - Tabs

This topic is 5099 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
DLGTEMPLATE* dlgPage = NULL;
HRSRC hrsrc = FindResource(NULL, MAKEINTRESOURCE(DLG_FIRST), RT_DIALOG); 
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
Advertisement
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.

Skizz

Share this post


Link to post
Share on other sites

  • Advertisement