Fixes for wxUSE_STATUSBAR.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28310 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user