How to know when a window is maximized
-
Hi. I need to know when a window is maximized. Not only a window from my applications, but from all programs on the computer. Example : Outlook window is maximized -> I need to know it :) Example : IE window is maximized -> I need to know it :) Example : SomeWindow is maximized -> I need to know it :) Thanks :) Heelios
-
Hi. I need to know when a window is maximized. Not only a window from my applications, but from all programs on the computer. Example : Outlook window is maximized -> I need to know it :) Example : IE window is maximized -> I need to know it :) Example : SomeWindow is maximized -> I need to know it :) Thanks :) Heelios
My first thought was that you could implement a global hook, however after reading the Microsoft knowledge article: HOW TO: Set a Windows Hook in Visual C# .NET[^] I found out that global hooks aren't allowed in the .NET Framework :(( So my thought now to you is to do some P/Invoke calling the EnumWindows Function[^] and then calling the IsZoomed Function[^] to determine if each window is maximized. Hope this is a pointer in the right direction for you. -Nick Parker
-
Hi. I need to know when a window is maximized. Not only a window from my applications, but from all programs on the computer. Example : Outlook window is maximized -> I need to know it :) Example : IE window is maximized -> I need to know it :) Example : SomeWindow is maximized -> I need to know it :) Thanks :) Heelios
I doubt if there is a way to catch an event, even if you use WndProc for messages. You'll probably have to do what the previous poster wrote. Run a timer and check every window manually.
-
I doubt if there is a way to catch an event, even if you use WndProc for messages. You'll probably have to do what the previous poster wrote. Run a timer and check every window manually.