X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8afa4fde3ab334616510b9975a1dfb027402a7e7..b94aea930437cd4d488ac13dbb283693389408c6:/samples/printing/printing.cpp diff --git a/samples/printing/printing.cpp b/samples/printing/printing.cpp index 8cc579cb29..95d65c86d3 100644 --- a/samples/printing/printing.cpp +++ b/samples/printing/printing.cpp @@ -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);