Link to home
Start Free TrialLog in
Avatar of VovinE
VovinE

asked on

How to make MDI child window blinking

Hi experts!

I have an MDI application. Within this application I have several child windows, which show informations on some event trigger.
When the window is not fucused and the event arrives, the window gets focused.

The problem is, that some events come too quickly and some windows get focused too frequently. I've solved this by adding some timespan when the window can focus, so it is not focusing more than once per 10 seconds.

Another issue is that when user minimizes the child window I would like it not to pop-up, but just indicate there is a message wating (like in regular non-MDI windows, when window tries to get focus window handle on taskbar is blinking)

And the core of my question is: how to make minimized icons of child MDI window to blink (so the user knows there is event wating to see)?

Avatar of joechina
joechina

Hi, VovinE,

Could you try to add a timer on your child form and in the timer ticker event handler hide and show the window?
In the event handler of message received, if the child window state is minimized, start the timer.
In the resize event handler of the child window, if the timer is enabled , disable it.

Good luck
ASKER CERTIFIED SOLUTION
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial