Gave wxWindow.GetHandle something to do on wxMac, although it won't
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
This commit is contained in:
parent
33adb15261
commit
1b35fec738
@ -28,6 +28,10 @@
|
||||
#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>
|
||||
@ -1667,10 +1671,11 @@ PyObject* wxPy_ConvertList(wxListBase* listbase) {
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
long wxPyGetWinHandle(wxWindow* win) {
|
||||
|
||||
#ifdef __WXMSW__
|
||||
return (long)win->GetHandle();
|
||||
#endif
|
||||
|
||||
|
||||
// Find and return the actual X-Window.
|
||||
#ifdef __WXGTK__
|
||||
if (win->m_wxwindow) {
|
||||
@ -1684,6 +1689,11 @@ long wxPyGetWinHandle(wxWindow* win) {
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef __WXMAC__
|
||||
return (long)MAC_WXHWND(win->MacGetRootWindow());
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user