In a typical windows app, when a modal dialog appears and we click outside its boundaries it flickers thus indiacting that anything outside these boundaries is forbidden for now.
Is there any event that fires when this happens? I really need this effect so that I can mock this behavior for my WPF pseudo-modal window.
Thx.
Harish
See this SO question and the answer: Prevent WebBrowser control from stealing focus?
It explains what FlashWindow does in the background. I quote what’s interesting for you:
So you’ll have to find the window you’re interested in, and try to catch WM_SYSTIMER in the hosting window procedure. It’s a (very old) undocumented Windows message. Value is 0x118. You can also trap WM_NCACTIVATE which may be easier because it’s represented by .NET events (Activated, Deactivate, etc…)