have exactly the same meaning as the other platforms.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25791 
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
 #include <wx/gtk/win_gtk.h>
 #endif
 
 #include <wx/gtk/win_gtk.h>
 #endif
 
+#ifdef __WXMAC__
+#include <wx/mac/private.h>
+#endif
+
 #include <wx/clipbrd.h>
 #include <wx/mimetype.h>
 #include <wx/image.h>
 #include <wx/clipbrd.h>
 #include <wx/mimetype.h>
 #include <wx/image.h>
 //----------------------------------------------------------------------
 
 long wxPyGetWinHandle(wxWindow* win) {
 //----------------------------------------------------------------------
 
 long wxPyGetWinHandle(wxWindow* win) {
 #ifdef __WXMSW__
     return (long)win->GetHandle();
 #endif
 #ifdef __WXMSW__
     return (long)win->GetHandle();
 #endif
     // Find and return the actual X-Window.
 #ifdef __WXGTK__
     if (win->m_wxwindow) {
     // Find and return the actual X-Window.
 #ifdef __WXGTK__
     if (win->m_wxwindow) {
+    
+#ifdef __WXMAC__
+    return (long)MAC_WXHWND(win->MacGetRootWindow());
+#endif
+