#include "printing.h"
-#if !defined(__WXMSW__) && !defined(__WXPM__)
+#ifndef wxHAS_IMAGES_IN_RESOURCES
#include "../sample.xpm"
#endif
dc.DrawText( wxT("Rectangle 200 by 80"), 40, 40);
- dc.SetPen( wxPen(*wxBLACK,0,wxDOT_DASH) );
+ dc.SetPen( wxPen(*wxBLACK, 0, wxPENSTYLE_DOT_DASH) );
dc.DrawEllipse(50, 140, 100, 50);
dc.SetPen(*wxRED_PEN);
wxPreviewFrame *frame =
new wxPreviewFrame(preview, this, wxT("Demo Print Preview"), wxPoint(100, 100), wxSize(600, 650));
frame->Centre(wxBOTH);
- frame->Initialize(m_previewModality);
+ frame->InitializeWithModality(m_previewModality);
frame->Show();
}