FlashWindowEx does not work with Windows Classic theme

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have an MFC application that uses FlashWindowEx to notify the user of an event by minimizing a window on the taskbar and calling FlashWindowEx. This works fine except if you are using the Windows Classic theme on Windows XP. If you switch back to one of the built-in XP themes, it works fine. When using the classic theme, the taskbar button flashes one time, and then appears 'pushed', like it is the active window even though it is not. Also, if you have the taskbar hidden, it does not pop up after calling FlashWindowEx like it does when using the XP theme, Win98 or 2000.
 
Guff said:
*I have an MFC application that uses FlashWindowEx to notify the use
of an event by minimizing a window on the taskbar and callin
FlashWindowEx. This works fine except if you are using the Window
Classic theme on Windows XP. If you switch back to one
of the built-in XP themes, it works fine. When using the classi
theme, the taskbar button flashes one time, and then appear
'pushed', like it is the active window even though it is not. Also
if you have the taskbar hidden, it does not pop up after ca
lling FlashWindowEx like it does when using the XP theme, Win98 o
2000. *

I tried using FlashWindowEx inside my application but showed error tha
Function not defined...I am using VS 6.0 in Win 2K professional...Wh
is this??


-
nishan
 
nishant said:
I tried using FlashWindowEx inside my application but showed error that
Function not defined...I am using VS 6.0 in Win 2K professional...Why
is this???

The function did not get added to the Win32 API until '98. Do you need to
define in your source or in the IDE

#define WINVER 0x0500

Of course, if you do that it is for you to insure that you don't try to run
your application on '95 or NT v4.

Regards,
Will
 
Back
Top