win32: CreateDialogIndirect - Tabs

Started by
2 comments, last by supagu 20 years, 1 month ago
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]
Advertisement
bump
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
yup done all that

This topic is closed to new replies.

Advertisement