How do you make the window maximized when the program starts?
Printable View
How do you make the window maximized when the program starts?
Well presumably you'd use WS_MAXIMIZE when you specify the windows style in the CreateWindowEx() function. But when I do that, it removes the X, minimize, maximize boxes, and makes the window useless....
So I'm not exactly sure how to specify the style. It almost seems like it will only create a maximized window as a CHILD window of some other process... that doesn't seem right..
Try using WS_MAXIMISE with the
WS_OVERLAPPEDWINDOW
style as well.
Tried that... doesn't work. In fact, nothing seems to work. No matter where I put it, it never makes a maximized window.. grrr....
hwnd = CreateWindow(blah, blah, blah);
ShowWindow(hwnd, SW_MAXIMIZE);