]> git.saurik.com Git - wxWidgets.git/commitdiff
fix compile break for unknown FLASHWINFO
authorChris Elliott <biol75@york.ac.uk>
Sat, 18 Sep 2004 14:16:37 +0000 (14:16 +0000)
committerChris Elliott <biol75@york.ac.uk>
Sat, 18 Sep 2004 14:16:37 +0000 (14:16 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29201 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msw/missing.h
src/msw/toplevel.cpp

index d4532496aee3d2798dcba870c045ab27241aa0e5..1c413a3462c63b4d61d8e2a67acca7db15dbb688 100644 (file)
@@ -184,6 +184,7 @@ typedef struct {
 #define LVM_SETUNICODEFORMAT 0x2005
 #endif
 
+
 // ----------------------------------------------------------------------------
 // Toolbar define value missing
 // ----------------------------------------------------------------------------
@@ -592,6 +593,17 @@ typedef struct {
     #define OFN_ENABLESIZING 0x00800000
 #endif
 
+// ------------------ For Flashing Window -------------
+#if (defined(__BORLANDC__) && (__BORLANDC__ < 550))
+typedef struct {
+    UINT  cbSize;
+    HWND  hwnd;
+    DWORD dwFlags;
+    UINT  uCount;
+    DWORD dwTimeout;
+} FLASHWINFO, *PFLASHWINFO;
+#endif
+
 // In addition, include stuff not defined in WinCE
 #ifdef __WXWINCE__
     #include "wx/msw/wince/missing.h"
index af3dd6758645438acbf1284067f335c19c33e20b..ae28587509cf625723a3533da5717bae6d9c304d 100644 (file)
@@ -907,7 +907,7 @@ 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
+#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;