modeless dialogbox

i have done the textchat application for that one i created the modeless dialog box. now my question is if i am talking with 5 persons means, 5 dialog boxed will be created and they will be minimed. now if one of the 5 persons send the message, that particular dialog box window should appear in blue color. when i used the commeand Setforegroundwindow() , the window is appearing as foreground in window NT, but in windows 2000 it is glowing in blue not coming as foreground i want irrespective of the operating system, then window should be blinked in blue color not coming as front window. for that one which window i have to use.

Who is Participating?
AndyAinscowConnect With a Mentor Freelance programmer / ConsultantCommented:
Check is the window minimised

If it is minimised then restore it

Now bring to foreground (if required)
martynjpearsonConnect With a Mentor Commented:
To "blink" a window, what you need to do is call CWnd::FlashWindow repeatedly in a timer.

So, if you want to make the window flash every second, then do :

SetTimer(1, 1000, NULL);

Then in the timer handler :


To make the window appear normal (i.e. once the flashing has stopped), call


Hope this helps
AmitAgarwalConnect With a Mentor Commented:
Instead use the FlashWindowEx which handles the repeated flashing.

AndyAinscowFreelance programmer / ConsultantCommented:
My comment would be a way to achieve the desired effect
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.