]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/splitter/splitter.cpp
added wxEncodingToCodepage() and implemented it properly (using in32 API instead...
[wxWidgets.git] / samples / splitter / splitter.cpp
index c7789cc0f8e71b9c3d4398baf689b89b27c2c0e8..2c956b311ec35a0404898f0ff0f94e260999f87f 100644 (file)
@@ -79,8 +79,7 @@ public:
 private:
   void UpdatePosition();
 
-  wxWindow *m_left,
-           *m_right;
+  wxScrolledWindow *m_left, *m_right;
 
   MySplitterWindow* m_splitter;
 
@@ -246,7 +245,9 @@ void MyFrame::SetMinSize(wxCommandEvent& WXUNUSED(event) )
 
 void MyFrame::UpdateUIHorizontal(wxUpdateUIEvent& event)
 {
-  event.Enable( ( (!m_splitter->IsSplit()) || (m_splitter->GetSplitMode() != wxSPLIT_HORIZONTAL) ) );
+    bool foo = ( (!m_splitter->IsSplit()) || (m_splitter->GetSplitMode() != wxSPLIT_HORIZONTAL) );
+    if( !foo )
+  event.Enable( foo );
 }
 
 void MyFrame::UpdateUIVertical(wxUpdateUIEvent& event)