I want to add a status bar to my Win32 application. I found out that I can use the CreateStatusWindow function. I work fine until I change my window. See Part of my code:
BOOL InitInstance(HINSTANCE hInstance, int nCmdShow) { HWND hWnd; hInst = hInstance; // Store instance handle in our global variable hWnd = CreateWindow(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, NULL, NULL, hInstance, NULL); if (!hWnd) { return FALSE; } CreateStatusWindow(WS_CHILD | WS_VISIBLE, _T("Welcome to SpyWindows"), hWnd, 9000); ShowWindow(hWnd, nCmdShow); UpdateWindow(hWnd); return TRUE; }
Here are two printed screens of the main application window:

What can I do to have a good status bar? (I also want to divide it into more areas)
source share