X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/976b3cb3d99971cf7384b22cb7005023c2843957..3e172c2019dcec3e589c58c3c0290f9641400bae:/src/generic/splitter.cpp diff --git a/src/generic/splitter.cpp b/src/generic/splitter.cpp index 976638bf07..6052fd67d8 100644 --- a/src/generic/splitter.cpp +++ b/src/generic/splitter.cpp @@ -502,7 +502,7 @@ void wxSplitterWindow::DrawSash(wxDC& dc) m_sashPosition, m_splitMode == wxSPLIT_VERTICAL ? wxVERTICAL : wxHORIZONTAL, - m_isHot ? wxCONTROL_CURRENT : 0 + m_isHot ? (int)wxCONTROL_CURRENT : 0 ); } @@ -709,6 +709,9 @@ void wxSplitterWindow::Initialize(wxWindow *window) wxASSERT_MSG( (!window || (window && window->GetParent() == this)), _T("windows in the splitter should have it as parent!") ); + if (! window->IsShown()) + window->Show(); + m_windowOne = window; m_windowTwo = (wxWindow *) NULL; DoSetSashPosition(0); @@ -730,6 +733,11 @@ bool wxSplitterWindow::DoSplit(wxSplitMode mode, wxCHECK_MSG( window1->GetParent() == this && window2->GetParent() == this, false, _T("windows in the splitter should have it as parent!") ); + if (! window1->IsShown()) + window1->Show(); + if (! window2->IsShown()) + window2->Show(); + m_splitMode = mode; m_windowOne = window1; m_windowTwo = window2;