Status bar covering parent window....by the way, thanks Ward
First of all, thanks Ward for responding to my last question regarding rich edit controls.
My question this time has to do with status windows....
I created a status window using the CreateWindowEx API function
hStatusWnd = CreateWindowEx(0, STATUSCLASSNAME,"", WS_CHILD | WS_VISIBLE, 0, 0, 0, 0, hwnd, NULL, hInst, NULL);
Works fine but it covers the bottom part of the parent window and the bottom part of the vertical scroll bar. How do I prevent the status bar from doing this?
One last question...How do I prevent the WM_DESTROY message from being sent when Alt-F4 is pressed or when the user clicks the X at the top of the window? I want a message box to appear instead.
Even when I got rid of the PostQuitMessage(0); function the window still closes. Any ideas??
Thank you in advance