Has anyone ot there used FlashWindow to change the state of there window. ie active/inactive

It doesn't appear to work with my window.

I'm using WS_EX_CONTEXTHELP in my extended window style.
Might this be the problem?

Any help appreciated?:grin:
Posted on 2001-08-13 17:38:02 by titan
titan:

i've used FlashWindow: the first parameter is hWnd (to be flashed), the second is a bool.

setting the bool to 'true' will invert the color. to truly 'flash' you need to make a timer (SetTimer, TimerProc, KillTimer) and keep sending the 'true' every X mS. setting it to false returns to the ORIGINAL state.

therefore, if you do true/false fast... it won't appear to change.

btw... the return value is a BOOL. if non-active before the call the return is zero.

phil :)
Posted on 2001-08-13 18:22:47 by phil
Yes i understand all that but shouldn't the state just change if i only flash once. BTW...i'm using a popup window maximized.

Maybe thats the problem.
Posted on 2001-08-13 18:25:46 by titan