Link to home
Start Free TrialLog in
Avatar of Bhaskar Ganapathe
Bhaskar GanapatheFlag for India

asked on

API FlashWindow

Flash Window API is not working,
is there any extra file is required
in the system for it or the api is
enough.Help me in this. cheers.
Avatar of jjsc
jjsc

Can you be more specific? That is, in what way is the function not working? It is designed to flash the title bar of a window (once) - if you need to flash several times, it's necessary to use the FlashWindowEx API call...

John
ASKER CERTIFIED SOLUTION
Avatar of waty
waty
Flag of Belgium 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
That's a *lot* of code to demo the FlashWindow() call :-)
Here is probably the easiest example you will see. This uses the timer.

Public Declare Function FlashWindow Lib "user32" (ByVal hwnd As Long, ByVal bInvert As Long) As Long

Private Sub Timer1_Timer()
FlashWindow Me.hwnd, 1
End Sub

to make it stop blinking you can stop timer. Or if you using loop to do this. Then flashwindow me.hwnd,0
Avatar of Bhaskar Ganapathe

ASKER

Thank you Marine, Your's code is
working fine. Thanks a lot for this.

:-), no problem. Good Luck.
Will someone get the points for this ?
I wondered when you were going to ask :-) Now if only bhaspup is listening...