Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Determine if a window is maximized 1

Status
Not open for further replies.

YerMom

Programmer
Oct 3, 2006
127
US
Hi,

Given a window handle, I need to determine if the window is maximized. I **think** I want to use the GetWindowPlacment api and look at the flags in the WINDOWPLACEMENT struct. Is this correct? If so, what value do I look for to see if the window is maximized?

Thanks.
 
A combination of GetWindowPos and WM_GETMINMAXINFO should do the trick.
 
Thanks fred93 and strongm.

I'll try the isZoomed. (I never noticed that one either...)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top