X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6b55490abdb56cd66acf9d965981c4bb4b5f2abb..b231914f6abe2c148193b006a0919d60575f9a20:/samples/splitter/splitter.cpp diff --git a/samples/splitter/splitter.cpp b/samples/splitter/splitter.cpp index c7789cc0f8..2c956b311e 100644 --- a/samples/splitter/splitter.cpp +++ b/samples/splitter/splitter.cpp @@ -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)