]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/splitter.cpp
Last .empty() string source cleaning before 2.5.4.
[wxWidgets.git] / src / generic / splitter.cpp
index 51d715bdb91d27e920e5c99719ee2506bf480631..6052fd67d8b138cf52a5f5c69a7a73c479c6a598 100644 (file)
@@ -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);
@@ -734,7 +737,7 @@ bool wxSplitterWindow::DoSplit(wxSplitMode mode,
         window1->Show();
     if (! window2->IsShown())
         window2->Show();
-    
+
     m_splitMode = mode;
     m_windowOne = window1;
     m_windowTwo = window2;