don't use WINVER for tests, work around bug in VC6 headers in another way

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34588 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-06-07 20:20:07 +00:00
parent 1033b8362a
commit 3a6b0a3e5d

View File

@@ -927,10 +927,12 @@ bool wxTopLevelWindowMSW::SetShape(const wxRegion& region)
void wxTopLevelWindowMSW::RequestUserAttention(int flags)
{
// 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 && (defined FLASHW_STOP))
// check if we can use FlashWindowEx(): unfortunately a simple test for
// FLASHW_STOP doesn't work because MSVC6 headers do #define it but don't
// provide FlashWindowEx() declaration, so try to detect whether we have
// real headers for WINVER 0x0500 by checking for existence of a symbol not
// declated in MSVC6 header
#if defined(FLASHW_STOP) && defined(VK_XBUTTON1)
// available in the headers, check if it is supported by the system
typedef BOOL (WINAPI *FlashWindowEx_t)(FLASHWINFO *pfwi);
FlashWindowEx_t s_pfnFlashWindowEx = NULL;