How do you make the window maximized when the program starts?
How do you make the window maximized when the program starts?
Code:#if _emo #define stereo_type_i_dislike #endif
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.
"Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
Friedrich Nietzsche
"I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
George Best
"If you are going through hell....keep going."
Winston Churchill
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);
Quidquid latine dictum sit, altum sonatur.
Whatever is said in Latin sounds profound.