SetMenuBar(menuBar);
#endif // wxUSE_MENUS
+#if wxUSE_STATUSBAR
// create status bar
CreateStatusBar();
+#endif // wxUSE_STATUSBAR
// create child controls
void MyFrame::OnFromPoint(wxCommandEvent& WXUNUSED(event))
{
+#if wxUSE_STATUSBAR
SetStatusText(_T("Press the mouse anywhere..."));
+#endif // wxUSE_STATUSBAR
CaptureMouse();
}