fix compile break for unknown FLASHWINFO

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29201 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Chris Elliott
2004-09-18 14:16:37 +00:00
parent f5de33e90f
commit 1a838ff58b
2 changed files with 13 additions and 1 deletions

View 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"

View 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;