From: Robin Dunn Date: Thu, 15 Apr 2004 19:27:54 +0000 (+0000) Subject: Use GetHandle for Mac too X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9c605df7699688acbda6d2b08f2f191c906d9bc7 Use GetHandle for Mac too git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26803 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/src/helpers.cpp b/wxPython/src/helpers.cpp index 5629feac3e..c05de89a4f 100644 --- a/wxPython/src/helpers.cpp +++ b/wxPython/src/helpers.cpp @@ -1818,7 +1818,8 @@ long wxPyGetWinHandle(wxWindow* win) { #endif #ifdef __WXMAC__ - return (long)MAC_WXHWND(win->MacGetRootWindow()); + //return (long)MAC_WXHWND(win->MacGetTopLevelWindowRef()); + return (long)win->GetHandle(); #endif return 0;