X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/17c02cc8e687443eaf6d09f5268d3ecd103d99f7..57ab6f2314860f6efd2d1339913c91a302020a8e:/samples/printing/printing.cpp diff --git a/samples/printing/printing.cpp b/samples/printing/printing.cpp index 61fcb8d06a..bb4daffb35 100644 --- a/samples/printing/printing.cpp +++ b/samples/printing/printing.cpp @@ -51,8 +51,8 @@ #include "printing.h" -#ifndef __WXMSW__ - #include "mondrian.xpm" +#if !defined(__WXMSW__) && !defined(__WXPM__) + #include "../sample.xpm" #endif // Global print data, to remember settings during the session @@ -123,8 +123,6 @@ bool MyApp::OnInit(void) frame->Centre(wxBOTH); frame->Show(); - SetTopWindow(frame); - return true; } @@ -212,7 +210,7 @@ void MyApp::Draw(wxDC&dc) str.Printf( wxT("---- Text at angle %d ----"), i ); dc.DrawRotatedText( str, 100, 300, i ); - wxIcon my_icon = wxICON(mondrian); + wxIcon my_icon = wxICON(sample); dc.DrawIcon( my_icon, 100, 100); @@ -303,7 +301,7 @@ MyFrame::MyFrame(wxFrame *frame, const wxString&title, const wxPoint&pos, const #endif // wxUSE_STATUSBAR // Load icon and bitmap - SetIcon( wxICON( mondrian) ); + SetIcon( wxICON( sample) ); // Make a menubar wxMenu *file_menu = new wxMenu;