]> git.saurik.com Git - wxWidgets.git/commitdiff
TrackMouse DMC fix.
authorWłodzimierz Skiba <abx@abx.art.pl>
Tue, 25 Jan 2005 12:22:56 +0000 (12:22 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Tue, 25 Jan 2005 12:22:56 +0000 (12:22 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31592 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

build/bakefiles/common.bkl
include/wx/msw/missing.h

index 99b0bd578b7bc5986db5a13024248618ee8d7051..b83a738fb4b06928de38c0e6becfac0147b7d3de 100644 (file)
         <if cond="FORMAT!='autoconf' and UNICODE=='1'">_UNICODE</if>
     </set>
 
+    <!-- fill for the specific case of the format/compiler -->
+    <set var="WIN32_WINNT">
+        <if cond="FORMAT=='dmars' or FORMAT=='dmars_smake'">_WIN32_WINNT=0x0400</if>
+    </set>
+
     <set var="UNICOWS_LIB">
         <if cond="MSLU=='1'">unicows</if>
     </set>
             <cppflags>$(EXTRACFLAGS)</cppflags>
         </if>
         <define>$(NO_VC_CRTDBG)</define>
+        <define>$(WIN32_WINNT)</define>
     </template>
 
     <template id="anylib">
index 1c413a3462c63b4d61d8e2a67acca7db15dbb688..f5ac2005577bb748a70d54dbb8ff5a7b84f2c20e 100644 (file)
@@ -520,14 +520,9 @@ typedef struct {
 
 #ifdef __DMC__
 
-  typedef struct tagTRACKMOUSEEVENT {
-      DWORD cbSize;
-      DWORD dwFlags;
-      HWND  hwndTrack;
-      DWORD dwHoverTime;
-  } TRACKMOUSEEVENT, *LPTRACKMOUSEEVENT;
-
-  WINCOMMCTRLAPI BOOL WINAPI _TrackMouseEvent(LPTRACKMOUSEEVENT lpEventTrack);
+    #ifndef _TrackMouseEvent
+        #define _TrackMouseEvent TrackMouseEvent
+    #endif
 
 #endif