Maximized window |
Author :
erikina
Post Date :
2005-09-30 20:54
Posts :
3
|
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. |
Author :
erikina
Post Date :
2005-09-30 21:11
Posts :
3
|
I am sorry, I think I posted this in the wrong "Win32" forum. |
Author :
grant
Post Date :
2005-09-30 22:22
Posts :
117
|
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 |
Author :
erikina
Post Date :
2005-10-01 08:29
Posts :
3
|
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. |
All Rights Reserved, © Zeus Communications, Multimedia & Development 2004-2005