Blinking Borders in Spy++

Blinking Borders in Spy++

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.

You need the FlashWindowEx function, which uses the FLASHWINFO structure (and includes a HWND for the window you want to blink).


About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist