X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4a0b46a7622f28f8365e56b90d62209c63b4ba93..4f3449b43280a855e57280e6848610ea9fdaa3bb:/samples/splitter/splitter.cpp diff --git a/samples/splitter/splitter.cpp b/samples/splitter/splitter.cpp index 89a7b7c829..4bde92e99a 100644 --- a/samples/splitter/splitter.cpp +++ b/samples/splitter/splitter.cpp @@ -36,7 +36,8 @@ class MySplitterWindow : public wxSplitterWindow { public: MySplitterWindow(wxFrame *parent, wxWindowID id) - : wxSplitterWindow(parent, id, wxDefaultPosition, wxDefaultSize, wxSP_3D | wxSP_LIVE_UPDATE) + : wxSplitterWindow(parent, id, wxDefaultPosition, wxDefaultSize, + wxSP_3D | wxSP_LIVE_UPDATE | wxCLIP_CHILDREN) { m_frame = parent; } @@ -145,8 +146,10 @@ BEGIN_EVENT_TABLE(MyFrame, wxFrame) END_EVENT_TABLE() // My frame constructor -MyFrame::MyFrame(wxFrame* frame, const wxString& title, const wxPoint& pos, const wxSize& size): - wxFrame(frame, SPLITTER_FRAME, title, pos, size) +MyFrame::MyFrame(wxFrame* frame, const wxString& title, + const wxPoint& pos, const wxSize& size) + : wxFrame(frame, SPLITTER_FRAME, title, pos, size, + wxDEFAULT_FRAME_STYLE | wxNO_FULL_REPAINT_ON_RESIZE) { CreateStatusBar(2);