+void MyFrame::OnUpdateStatusBarToggle(wxUpdateUIEvent& event)
+{
+ event.Check(GetStatusBar() != 0);
+}
+
+void MyFrame::OnStatusBarToggle(wxCommandEvent& WXUNUSED(event))
+{
+ wxStatusBar *statbarOld = GetStatusBar();
+ if ( statbarOld )
+ {
+ statbarOld->Hide();
+ SetStatusBar(0);
+ }
+ else
+ {
+ DoCreateStatusBar(m_statbarKind);
+ }
+#ifdef __WXMSW__
+ // The following is a kludge suggested by Vadim Zeitlin (one of the wxWindows
+ // authors) while we look for a proper fix..
+// SendSizeEvent();
+#endif
+}
+