Ternary
Ternary

Reputation: 2421

Detect HWND Visibility Change

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

Answers (1)

GETah
GETah

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

Related Questions