Question:
How does Spy++ make the borders of a window blink when you select “Highlight” from the right-click menu?
I have a MouseProc in the hook chain, so I can get the handle of the window that the mouse is over; I just need to know how to make the borders blink. I thought I once read about an API that easily does it, but I cannot find such a creature now.
Answer:
You need the FlashWindowEx function, which uses the FLASHWINFO structure (and includes a HWND for the window you want to blink).