Kellie Fitton
2005-03-21 18:01:30 UTC
Hello Everyone,
I am calling the win32 API DialogBoxIndirectParam with the extended
templates DLGTEMPLATEEX (header) and DLGITEMTEMPLATEEX (array) so
I can create a dialogBox dynamically. When I call the function
with the header template Only, I get an empty dialogBox that looks
fine accordingly, However, when I include the control template to
the array so I can add a button for example, the function call
retuns an error code -1, which means failed, and when I call the
win32 API GetLastError I would get an error text message that say:
"Cannot Find Window Class". I think am doing something wrong with
the second structure, even though I got it aligned on a DWORD.
I am hoping someone here can help me to correctly define the array
"DLGITEMTEMPLATEEX"? your help will be appreciated. Regards.
Kellie.
I am calling the win32 API DialogBoxIndirectParam with the extended
templates DLGTEMPLATEEX (header) and DLGITEMTEMPLATEEX (array) so
I can create a dialogBox dynamically. When I call the function
with the header template Only, I get an empty dialogBox that looks
fine accordingly, However, when I include the control template to
the array so I can add a button for example, the function call
retuns an error code -1, which means failed, and when I call the
win32 API GetLastError I would get an error text message that say:
"Cannot Find Window Class". I think am doing something wrong with
the second structure, even though I got it aligned on a DWORD.
I am hoping someone here can help me to correctly define the array
"DLGITEMTEMPLATEEX"? your help will be appreciated. Regards.
Kellie.