/////////////////////////////////////////////////////////////////////////////
// Name: printing.cpp
-// Purpose: Printing demo for wxWindows
+// Purpose: Printing demo for wxWidgets
// Author: Julian Smart
// Modified by:
// Created: 1995
g_pageSetupData = new wxPageSetupDialogData;
// Create the main frame window
- frame = new MyFrame((wxFrame *) NULL, _T("wxWindows Printing Demo"), wxPoint(0, 0), wxSize(400, 400));
+ 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) );
frame->Centre(wxBOTH);
frame->Show();
+#if wxUSE_STATUSBAR
frame->SetStatusText(_T("Printing demo"));
+#endif // wxUSE_STATUSBAR
SetTopWindow(frame);
void MyFrame::OnPrintAbout(wxCommandEvent& WXUNUSED(event))
{
- (void)wxMessageBox(_T("wxWindows printing demo\nAuthor: Julian Smart"),
- _T("About wxWindows printing demo"), wxOK|wxCENTRE);
+ (void)wxMessageBox(_T("wxWidgets printing demo\nAuthor: Julian Smart"),
+ _T("About wxWidgets printing demo"), wxOK|wxCENTRE);
}
void MyFrame::Draw(wxDC& dc)
int pageWidthMM, pageHeightMM;
printout->GetPageSizeMM(&pageWidthMM, &pageHeightMM);
+ wxUnusedVar(pageHeightMM);
int leftMargin = 10;
int topMargin = 10;