cancel
Showing results for 
Search instead for 
Did you mean: 

How to identify window maximized or minimized or restored?

Highlighted
Frequent Contributor

How to identify window maximized or minimized or restored?

Guys,



Can I identify the window state using any of the properties? No properties are exposed like  maximized or minimized or restored.

I only addressed this using  "window.SytemMenu.Count and comparing caption and Enabled". Any other way?



Its better to have direct property like the above...



Thanks...
Give Kudos or Accept as a Solution to help others if my input helped you !!!
http://shanmugavelc.blogspot.in
1 REPLY 1
Highlighted

RE: How to identify window maximized or minimized or restored?

Hello Shanmugavel,



Yes, you can. Use the IsIconic and IsZoomed Win32API functions to do that, for example:



var isMinimized = Win32API.IsIconic(myWindow.Handle);




For more information, please see the following resources:



"Window Functions" (MSDN library)


Calling Win32 API Functions
-----

Alexander
Customer Care Manager
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors