#ifdef StartDoc
#undef StartDoc
+ #ifdef __MINGW32__
+ #define DOCINFOW DOCINFO
+ #define DOCINFOA DOCINFO
+ #endif
#ifdef _UNICODE
inline int StartDoc(HDC h, CONST DOCINFOW* info)
{
return GetObjectW(h, i, buffer);
#else
return GetObjectA(h, i, buffer);
- #endif
+ #endif
+ }
+#endif
+
+
+#ifdef GetMessage
+ #undef GetMessage
+ inline int GetMessage(LPMSG lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT wMsgFilterMax)
+ {
+ #ifdef _UNICODE
+ return GetMessageW(lpMsg, hWnd, wMsgFilterMin, wMsgFilterMax);
+ #else
+ return GetMessageA(lpMsg, hWnd, wMsgFilterMin, wMsgFilterMax);
+ #endif
}
#endif
+// For WINE
+
+#if defined(GetWindowStyle) || defined(__WXWINE__)
+ #undef GetWindowStyle
+#endif
// For ming and cygwin
// GetNextSibling
#ifdef GetNextSibling
- #undef GetNextSibling
- inline HWND GetNextSibling(HWND h)
- {
- return GetWindow(h, GW_HWNDNEXT);
- }
+ #undef GetNextSibling
+ inline HWND GetNextSibling(HWND h)
+ {
+ return GetWindow(h, GW_HWNDNEXT);
+ }
#endif
// GetWindowProc