#ifdef StartDoc
#undef StartDoc
- #ifdef __GNUWIN32__
+ #ifdef __GNUG__
#define DOCINFOW DOCINFO
#define DOCINFOA DOCINFO
#endif
}
#endif
+// FindResource
+#ifdef FindResource
+ #undef FindResource
+ inline HRSRC FindResource(HMODULE hModule, LPCTSTR lpName, LPCTSTR lpType)
+ {
+ #ifdef _UNICODE
+ return FindResourceW(hModule, lpName, lpType);
+ #else
+ return FindResourceA(hModule, lpName, lpType);
+ #endif
+ }
+#endif
+
// IsMaximized
#ifdef IsMaximized
}
#endif
+// GetPrevSibling
+
+#ifdef GetPrevSibling
+ #undef GetPrevSibling
+ inline HWND GetPrevSibling(HWND hwnd)
+ {
+ return GetWindow(hwnd,GW_HWNDPREV);
+ }
+#endif
+
+// GetNextSibling
+
+#ifdef GetNextSibling
+ #undef GetNextSibling
+ inline HWND GetNextSibling(HWND hwnd)
+ {
+ return GetWindow(hwnd,GW_HWNDNEXT);
+ }
+#endif
+
// For WINE
#if defined(GetWindowStyle) || defined(__WXWINE__)