X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dabbc6a5a1795d169f26ce95927f3e4f1a5e7b7e..667601991b0e113aebc5b931dea1e82b0026c41b:/samples/help/demo.cpp?ds=inline

diff --git a/samples/help/demo.cpp b/samples/help/demo.cpp
index d0dc6d9471..2256106012 100644
--- a/samples/help/demo.cpp
+++ b/samples/help/demo.cpp
@@ -425,9 +425,11 @@ MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size)
     // ... and attach this menu bar to the frame
     SetMenuBar(menuBar);
 
+#if wxUSE_STATUSBAR
     // create a status bar just for fun (by default with 1 pane only)
     CreateStatusBar();
     SetStatusText(_T("Welcome to wxWidgets!"));
+#endif // wxUSE_STATUSBAR
 
     // now create some controls