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:
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:
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 :)
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 :)
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.
Maybe thats the problem.