From 446ea1073113c9dbb76a2a872fc12cc7a07a57f1 Mon Sep 17 00:00:00 2001 From: Chris Elliott Date: Mon, 19 Jan 2004 16:41:08 +0000 Subject: [PATCH] fix for DMC missing mouse defines git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25252 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/msw/missing.h | 33 +++++++++++++++++++++++++++++++++ src/msw/window.cpp | 2 +- 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/include/wx/msw/missing.h b/include/wx/msw/missing.h index e90cbbc648..dd7ad37b2d 100644 --- a/include/wx/msw/missing.h +++ b/include/wx/msw/missing.h @@ -493,5 +493,38 @@ typedef struct { #define HANGUL_CHARSET 129 #endif +#ifndef TME_HOVER + #define TME_HOVER 1 +#endif + +#ifndef TME_LEAVE + #define TME_LEAVE 2 +#endif + +#ifndef TME_QUERY + #define TME_QUERY 0x40000000 +#endif + +#ifndef TME_CANCEL + #define TME_CANCEL 0x80000000 +#endif + +#ifndef HOVER_DEFAULT + #define HOVER_DEFAULT 0xFFFFFFFF +#endif + +#ifdef __DMC__ + + typedef struct tagTRACKMOUSEEVENT { + DWORD cbSize; + DWORD dwFlags; + HWND hwndTrack; + DWORD dwHoverTime; + } TRACKMOUSEEVENT, *LPTRACKMOUSEEVENT; + + WINCOMMCTRLAPI BOOL WINAPI _TrackMouseEvent(LPTRACKMOUSEEVENT lpEventTrack); + +#endif + #endif // _WX_MISSING_H_ diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 081a98761b..2230934855 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -114,7 +114,7 @@ #include "wx/msw/gnuwin32/extra.h" #endif -#if defined(__GNUG__) +#if defined(__GNUG__) || defined(__DMC__) #include "wx/msw/missing.h" #endif -- 2.47.2