Can someone give me some insight as to why this will display no error message, nor will it display the actual control? I am doing this in the WM_CREATE message of my main windows message handler. Here is one of the controls I'm trying to create:
Code:
if( (hcowner = CreateWindow("EDIT", "", WS_VISIBLE | WS_DISABLED | WS_CHILD | WS_CLIPCHILDREN, x, y, 200, 40, hwnd, NULL, g_hInst, NULL)) == NULL )
{
sprintf(error, "Could not initialize controls. (Error Code: 0006; %u)", GetLastError());
MessageBox(NULL, error, "Error", MB_ICONEXCLAMATION);
return(0);
}
the x and y values have been set according to the GetClientRect() call and - or + values to the returned co-ords from that call.
Any help is appreciated,
Tyouk