I need to identify some wnds in my application (objects of CMDIChildWnd class).
To do this i am using a timer to draw the border of the wnd with specific color alternatively so as to give the feel of blinking. This works perfectly fine on WinXP machines, but faires miserably on Win7 machines; there is significant delay in painting the highlighted border.
However when switched to optimize for best performance setting everything works just smooth.
I am using CCLinetDC::Rectangle() method to draw the border. Is there some known issue with this API in Win7? How can I make it work on Win7 as well?
You could try with disabling NC area painting.
Something like below:
But it also disables Aero on the window.
So it would be more straightforward to show blink in the client area not in the border.
UPDATED
For XP compatibility, you should use DWM APIs like this: