Reputation: 2421
Is there a way to register a handler to be notified when my application's windows change visibility based on the OS (or anyone else) accessing the HWND directly via something like ShowWindow() with SW_HIDE, etc.?
Upvotes: 1
Views: 310
Reputation: 21449
Assuming your application is WinForms based. Yes, that should be possible by overriding the WndProc
of your main Form
.
See WndProc
MSDN documentation for details.
Upvotes: 3