git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29058
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void wxTopLevelWindowMSW::RequestUserAttention(int flags)
{
void wxTopLevelWindowMSW::RequestUserAttention(int flags)
{
- // check if we can use FlashWindowEx()
-#ifdef FLASHW_STOP
+ // check if we can use FlashWindowEx(): unfortunately an explicit test for
+ // FLASHW_STOP, for example, doesn't work because MSVC6 headers do #define
+ // it but don't provide FlashWindowEx() declaration
+#if WINVER >= 0x0500
// available in the headers, check if it is supported by the system
typedef BOOL (WINAPI *FlashWindowEx_t)(FLASHWINFO *pfwi);
FlashWindowEx_t s_pfnFlashWindowEx = NULL;
// available in the headers, check if it is supported by the system
typedef BOOL (WINAPI *FlashWindowEx_t)(FLASHWINFO *pfwi);
FlashWindowEx_t s_pfnFlashWindowEx = NULL;
s_pfnFlashWindowEx(&fwi);
}
else // FlashWindowEx() not available
s_pfnFlashWindowEx(&fwi);
}
else // FlashWindowEx() not available
+#endif // FlashWindowEx() defined
{
wxUnusedVar(flags);
#ifndef __WXWINCE__
{
wxUnusedVar(flags);
#ifndef __WXWINCE__