]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msw/winundef.h
Removed unnecessary code from utilsunx.cpp
[wxWidgets.git] / include / wx / msw / winundef.h
index 2217085e1e72fb67e915d17bf5683469b62d222a..e580f2465070e6e03dd274880b0da3bf979f3a88 100644 (file)
 
 #ifdef StartDoc
    #undef StartDoc
 
 #ifdef StartDoc
    #undef StartDoc
-   #ifdef __GNUWIN32__
+   #ifdef __GNUG__
       #define DOCINFOW DOCINFO
       #define DOCINFOA DOCINFO
    #endif
       #define DOCINFOW DOCINFO
       #define DOCINFOA DOCINFO
    #endif
     }
 #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
 // IsMaximized
 
 #ifdef IsMaximized
     }
 #endif
 
     }
 #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__)
 // For WINE
 
 #if defined(GetWindowStyle) || defined(__WXWINE__)