should use the MDI Child, not it's parent.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29674
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#include "wx/wx.h"
#endif
+#ifdef __WXMSW__
+#include "wx/mdi.h"
+#endif
+
#include "wx/gizmos/dynamicsash.h"
wxWindow *win;
win = m_window->GetParent();
- while (win && !win->IsTopLevel()) {
+ while (win && !win->IsTopLevel()
+#ifdef __WXMSW__
+ && ! wxIsKindOf(win, wxMDIChildFrame) // not top-level but still a frame
+#endif
+ ) {
win = win->GetParent();
}