backported Mac GetHandle
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@25944 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -28,6 +28,10 @@
|
|||||||
#include <wx/gtk/win_gtk.h>
|
#include <wx/gtk/win_gtk.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __WXMAC__
|
||||||
|
#include <wx/mac/private.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
||||||
#if PYTHON_API_VERSION <= 1007 && wxUSE_UNICODE
|
#if PYTHON_API_VERSION <= 1007 && wxUSE_UNICODE
|
||||||
@@ -1605,10 +1609,12 @@ PyObject* wxPy_ConvertList(wxListBase* list, const char* className) {
|
|||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
||||||
long wxPyGetWinHandle(wxWindow* win) {
|
long wxPyGetWinHandle(wxWindow* win) {
|
||||||
|
|
||||||
#ifdef __WXMSW__
|
#ifdef __WXMSW__
|
||||||
return (long)win->GetHandle();
|
return (long)win->GetHandle();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
// Find and return the actual X-Window.
|
// Find and return the actual X-Window.
|
||||||
#ifdef __WXGTK__
|
#ifdef __WXGTK__
|
||||||
if (win->m_wxwindow) {
|
if (win->m_wxwindow) {
|
||||||
@@ -1622,6 +1628,12 @@ long wxPyGetWinHandle(wxWindow* win) {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef __WXMAC__
|
||||||
|
return (long)MAC_WXHWND(win->MacGetRootWindow());
|
||||||
|
#endif
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user