]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msw/winundef.h
Adding GetPrevSibling() & GetNextSibling() in winundef.h
[wxWidgets.git] / include / wx / msw / winundef.h
index 2217085e1e72fb67e915d17bf5683469b62d222a..356bb06ab1109575ca43df7053ca6a9bc5564a5c 100644 (file)
     }
 #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__)