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:
the x and y values have been set according to the GetClientRect() call and - or + values to the returned co-ords from that call.
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);
Any help is appreciated,