git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24425
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
}
void MyFrame::OnSize(wxSizeEvent& event)
+{
+ DoSize();
+
+ event.Skip();
+}
+
+void MyFrame::DoSize()
{
if ( !m_logWindow )
return;
wxCoord y = (2*size.y)/3;
m_listCtrl->SetSize(0, 0, size.x, y);
m_logWindow->SetSize(0, y + 1, size.x, size.y - y);
-
- event.Skip();
}
void MyFrame::OnQuit(wxCommandEvent& WXUNUSED(event))
}
}
-#ifdef __WXMSW__
- SendSizeEvent();
-#endif
+ DoSize();
m_logWindow->Clear();
}
{
public:
MyFrame(const wxChar *title, int x, int y, int w, int h);
- ~MyFrame();
+ virtual ~MyFrame();
+
+ void DoSize();
protected:
void OnSize(wxSizeEvent& event);