diff --git a/build/bakefiles/common.bkl b/build/bakefiles/common.bkl
index 99b0bd578b..b83a738fb4 100644
--- a/build/bakefiles/common.bkl
+++ b/build/bakefiles/common.bkl
@@ -261,6 +261,11 @@
_UNICODE
+
+
+ _WIN32_WINNT=0x0400
+
+
unicows
@@ -277,6 +282,7 @@
$(EXTRACFLAGS)
$(NO_VC_CRTDBG)
+ $(WIN32_WINNT)
diff --git a/include/wx/msw/missing.h b/include/wx/msw/missing.h
index 1c413a3462..f5ac200557 100644
--- a/include/wx/msw/missing.h
+++ b/include/wx/msw/missing.h
@@ -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