private:
void UpdatePosition();
- wxWindow *m_left,
- *m_right;
+ wxScrolledWindow *m_left, *m_right;
MySplitterWindow* m_splitter;
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)