mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-09 21:40:34 +01:00
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69903 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
31 lines
627 B
C++
31 lines
627 B
C++
|
|
#ifdef __WXMSW__
|
|
#include <wx/msw/private.h>
|
|
#endif
|
|
|
|
#ifdef __WXGTK__
|
|
#include <gdk/gdkx.h>
|
|
#include <wx/gtk/private/win_gtk.h>
|
|
#define GetXWindow(wxwin) (wxwin)->m_wxwindow ? \
|
|
GDK_WINDOW_XWINDOW((wxwin)->m_wxwindow->window) : \
|
|
GDK_WINDOW_XWINDOW((wxwin)->m_widget->window)
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
wxUIntPtr wxPyGetWinHandle(const wxWindow* win)
|
|
{
|
|
#ifdef __WXMSW__
|
|
return (wxUIntPtr)win->GetHandle();
|
|
#endif
|
|
#if defined(__WXGTK__) || defined(__WXX11__)
|
|
return (wxUIntPtr)GetXWindow(win);
|
|
#endif
|
|
#ifdef __WXMAC__
|
|
return (wxUIntPtr)win->GetHandle();
|
|
#endif
|
|
return 0;
|
|
}
|