]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/printing/printing.cpp
Fixed GetLineLength and GetLineText for MLTE text controls - Fixed bug where it could...
[wxWidgets.git] / samples / printing / printing.cpp
index 8cc579cb293eff5e8af91addd6ffe5852ca049f2..95d65c86d366af4620f236b42cc59392be8bfa00 100644 (file)
@@ -82,8 +82,10 @@ bool MyApp::OnInit(void)
     // Create the main frame window
     frame = new MyFrame((wxFrame *) NULL, _T("wxWidgets Printing Demo"), wxPoint(0, 0), wxSize(400, 400));
 
+#if wxUSE_STATUSBAR
     // Give it a status line
     frame->CreateStatusBar(2);
+#endif // wxUSE_STATUSBAR
 
     // Load icon and bitmap
     frame->SetIcon( wxICON( mondrian) );
@@ -135,7 +137,9 @@ bool MyApp::OnInit(void)
     frame->Centre(wxBOTH);
     frame->Show();
 
+#if wxUSE_STATUSBAR
     frame->SetStatusText(_T("Printing demo"));
+#endif // wxUSE_STATUSBAR
 
     SetTopWindow(frame);