wxMDIChildFrame::IsTopLevel returns false but for this purpose we
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
This commit is contained in:
@@ -27,6 +27,10 @@
|
|||||||
#include "wx/wx.h"
|
#include "wx/wx.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __WXMSW__
|
||||||
|
#include "wx/mdi.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "wx/gizmos/dynamicsash.h"
|
#include "wx/gizmos/dynamicsash.h"
|
||||||
|
|
||||||
|
|
||||||
@@ -452,7 +456,11 @@ wxWindow *wxDynamicSashWindowImpl::FindFrame() const {
|
|||||||
wxWindow *win;
|
wxWindow *win;
|
||||||
|
|
||||||
win = m_window->GetParent();
|
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();
|
win = win->GetParent();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user