X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6b55490abdb56cd66acf9d965981c4bb4b5f2abb..8916d00747c8e7b704ad549afcd8d0f88b6d861e:/samples/splitter/splitter.cpp?ds=sidebyside 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)