hi im tryin to create a status bar for my main window , i place the CreateWindow() inside the WM_CREATE: in the window procedure
what im doing wrong?
Code:
//window proc
...
HWND hStatus;
switch (message) /* handle the messages */
{
case WM_CREATE:
hStatus=CreateWindow("msctls_statusbar32", "Ready",WS_CHILD|WS_VISIBLE,0,0,0,0,hwnd,(HMENU)NULL,GetModuleHandle(NULL), NULL);
in cant see the staus bar in the main window
and is the WM_CREATE: of winproc the best place to create the status bar?
thanks for any help