Problem Creating Window

  • Thread starter Thread starter Ady
  • Start date Start date
A

Ady

Hi,

When I create a window as follows

aWnd->hWnd = CreateWindowEx(WS_EX_CLIENTEDGE, strClassName, strWindowName,
dwStyle, 10, 10,
40,40,
hWndParent, NULL, aWnd->hInstance, NULL);

The window handle hWnd is null but when I call GetLastError the error code
is 0???????

Cany Someone Help?

Ady
 
Ady said:
When I create a window as follows

aWnd->hWnd = CreateWindowEx(WS_EX_CLIENTEDGE, strClassName, strWindowName,
dwStyle, 10, 10,
40,40,
hWndParent, NULL, aWnd->hInstance, NULL);

The window handle hWnd is null but when I call GetLastError the error code
is 0???????

Does the window get a WM_CREATE message? If so, how is it handled?

Regards,
Will
 
Ady said:
it currently doesnt do anything when it gets a create message it just
returns

Hmm. If it returns 0, the window should be created while -1 cancels the
creation. If zero is what you are returning you may want to use the SPY tool
to see if some other message is doing you in.

Regards,
Will
 
Back
Top