Skip to main content
GameDev.net gamedev.net
🔒 Locked

Checking for maximized window

Started by AcidInjury Jan 19, 2003 at 4:33 PM 0 replies 200+ views
Original Post
AcidInjury
AcidInjury
I'm writing a map editor, and I want to save the last state of the window when the user exits. I have it working as long as it's not maximized. All i'm doing is saving the information from GetWindowRect() when the app is closing, but for some reason it isn't saving the window size when it's maximized. When I run the program again it reverts to the last saved value (last time I closed the program when not maximized.) Anyone know of a function that will let me know if the window is maximized? -Will [edited by - AcidInjury on January 19, 2003 5:37:31 PM]
microdot
microdot
To check if it''s maximized use...

BOOL IsZoomed (HWND)

and there''s one for minimized too...

BOOL IsIconic (HWND)
<span class="smallfont">That is not dead which can eternal lieAnd with strange aeons even death may die.   -- "The Nameless City" - H. P. Lovecraft</span>

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.