X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9134af5b50f932d73dd0ead75c36b7095cc40c08..53fbce27baf386ba2852b64da8845094b69950b5:/samples/printing/printing.cpp?ds=sidebyside diff --git a/samples/printing/printing.cpp b/samples/printing/printing.cpp index 8e5477c0af..8cc579cb29 100644 --- a/samples/printing/printing.cpp +++ b/samples/printing/printing.cpp @@ -1,6 +1,6 @@ ///////////////////////////////////////////////////////////////////////////// // Name: printing.cpp -// Purpose: Printing demo for wxWindows +// Purpose: Printing demo for wxWidgets // Author: Julian Smart // Modified by: // Created: 1995 @@ -80,7 +80,7 @@ bool MyApp::OnInit(void) 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)); // Give it a status line frame->CreateStatusBar(2); @@ -282,8 +282,8 @@ void MyFrame::OnPageSetupPS(wxCommandEvent& WXUNUSED(event)) 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) @@ -547,6 +547,7 @@ dc->SetFont(headerFont); int pageWidthMM, pageHeightMM; printout->GetPageSizeMM(&pageWidthMM, &pageHeightMM); + wxUnusedVar(pageHeightMM); int leftMargin = 10; int topMargin = 10;