const wxString& title = _T("wxToolBar Sample"),
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
- long style = wxDEFAULT_FRAME_STYLE);
+ long style = wxDEFAULT_FRAME_STYLE|wxCLIP_CHILDREN|wxNO_FULL_REPAINT_ON_RESIZE);
void RecreateToolbar();
style &= ~(wxTB_HORIZONTAL | wxTB_VERTICAL);
style |= m_horzToolbar ? wxTB_HORIZONTAL : wxTB_VERTICAL;
+ style |= wxNO_FULL_REPAINT_ON_RESIZE ;
toolBar = CreateToolBar(style, ID_TOOLBAR);
#endif
void MyFrame::OnUpdateCopyAndCut(wxUpdateUIEvent& event)
{
- event.Enable( m_textWindow->CanCopy() );
+ if (m_textWindow)
+ event.Enable( m_textWindow->CanCopy() );
}
void MyFrame::OnChangeToolTip(wxCommandEvent& WXUNUSED(event))