Board index » Visual Studio » How to implement this?

How to implement this?

Visual Studio221
Greetings,



I want to check if current application is the active window, if not, then I

want the window blink. Just like MSN receives a new message when it is not

active. How to implement that? My target platform is Win2K.



Evan


-
 

Re:How to implement this?

"music4" <music4@163.net>wrote in message

Quote
Greetings,



I want to check if current application is the active window, if not, then

I

want the window blink. Just like MSN receives a new message when it is not

active. How to implement that? My target platform is Win2K.



GetForegroundWindow

FlashWindow



Not sure about the compatability for the latter.



--

- Mark Randall

www.temporal-solutions.co.uk">www.temporal-solutions.co.uk



"We're Systems and Networks..."

"It's our job to know..."





-

Re:How to implement this?

If you want to get the attention of your user, but your program is not on

top or is iconized you can use flashwindow on a timer to "blink" the

taskbar. However, I think this happens automatically in Windows XP if the

program pops up a window.



Tom



"music4" <music4@163.net>wrote in message

Quote
Greetings,



I want to check if current application is the active window, if not, then

I

want the window blink. Just like MSN receives a new message when it is not

active. How to implement that? My target platform is Win2K.



Evan









-