Menu
Forums
Login | Register

Home > Forums > Win32 > Maximized window Page :  1 
Maximized window
In the function CreateWindowEX I am using the dwStyle as WS_SYSMENU | WS_CAPTION | WS_MAXIMIZE | WS_MINIMIZEBOX

in the hope that I'll have a window that start maximized have a minimize button and a caption.

The only problem is that it seems the maximize is getting overridden by the Width and Height ints that I have to use in the function later (I think). Is there any simply way that I get the window to maximize regardless of screen resolution?

-Eric Springer.
I am sorry, I think I posted this in the wrong "Win32" forum.
Hi,

You can pass SW_MAXIMIZE onto the ShowWindow function

e.g.

ShowWindow(SW_MAXIMIZE);

This will show your window with a maximized starting position.

Regards,
Grant
Thanks a lot Grant. It works really well, it even goes ontop of the taskbar (which for what I'm doing is good).

Thanks!
-Eric.

Home > Forums > Win32 > Maximized window Page :  1 

You need to be logged in to reply to this topic.


All Rights Reserved, © Zeus Communications, Multimedia & Development 2004-2005

Read the Disclaimer

Links