X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dc92adaf0c8d1d8b71b4a4cabe6f42c3a17f62a1..9a35701127e3e8d2c7fb433d85c7b3954ccbfc9f:/src/msw/toplevel.cpp diff --git a/src/msw/toplevel.cpp b/src/msw/toplevel.cpp index 11b0b43600..ae28587509 100644 --- a/src/msw/toplevel.cpp +++ b/src/msw/toplevel.cpp @@ -824,7 +824,7 @@ bool wxTopLevelWindowMSW::EnableCloseButton(bool enable) { #if !defined(__WXMICROWIN__) // get system (a.k.a. window) menu - HMENU hmenu = ::GetSystemMenu(GetHwnd(), FALSE /* get it */); + HMENU hmenu = GetSystemMenu(GetHwnd(), FALSE /* get it */); if ( !hmenu ) { // no system menu at all -- ok if we want to remove the close button @@ -904,8 +904,10 @@ bool wxTopLevelWindowMSW::SetShape(const wxRegion& region) 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 && (defined FLASHW_STOP)) // available in the headers, check if it is supported by the system typedef BOOL (WINAPI *FlashWindowEx_t)(FLASHWINFO *pfwi); FlashWindowEx_t s_pfnFlashWindowEx = NULL; @@ -938,11 +940,12 @@ void wxTopLevelWindowMSW::RequestUserAttention(int flags) s_pfnFlashWindowEx(&fwi); } else // FlashWindowEx() not available -#endif // FLASHW_STOP +#endif // FlashWindowEx() defined { wxUnusedVar(flags); - +#ifndef __WXWINCE__ ::FlashWindow(GetHwnd(), TRUE); +#endif // __WXWINCE__ } }