Must have event.Skip() in OnSize for wxUniv
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25148 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -154,7 +154,7 @@ MyFrame::MyFrame(wxDocManager *manager, wxFrame *frame, const wxString& title,
|
|||||||
editMenu = NULL;
|
editMenu = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MyFrame::OnSize(wxSizeEvent& WXUNUSED(event))
|
void MyFrame::OnSize(wxSizeEvent& event)
|
||||||
{
|
{
|
||||||
if (canvas && palette)
|
if (canvas && palette)
|
||||||
{
|
{
|
||||||
@@ -172,6 +172,7 @@ void MyFrame::OnSize(wxSizeEvent& WXUNUSED(event))
|
|||||||
palette->SetSize(paletteX, paletteY, paletteW, paletteH);
|
palette->SetSize(paletteX, paletteY, paletteW, paletteH);
|
||||||
canvas->SetSize(canvasX, canvasY, canvasW, canvasH);
|
canvas->SetSize(canvasX, canvasY, canvasW, canvasH);
|
||||||
}
|
}
|
||||||
|
event.Skip();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MyFrame::OnCloseWindow(wxCloseEvent& event)
|
void MyFrame::OnCloseWindow(wxCloseEvent& event)
|
||||||
|
@@ -141,10 +141,11 @@ void csFrame::OnCloseWindow(wxCloseEvent& event)
|
|||||||
wxDocMDIParentFrame::OnCloseWindow(event);
|
wxDocMDIParentFrame::OnCloseWindow(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
void csFrame::OnSize(wxSizeEvent& WXUNUSED(event))
|
void csFrame::OnSize(wxSizeEvent& event)
|
||||||
{
|
{
|
||||||
wxLayoutAlgorithm layout;
|
wxLayoutAlgorithm layout;
|
||||||
layout.LayoutMDIFrame(this);
|
layout.LayoutMDIFrame(this);
|
||||||
|
event.Skip();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make sure the correct toolbars are showing for the active view
|
// Make sure the correct toolbars are showing for the active view
|
||||||
|
Reference in New Issue
Block a user