#include "wx/html/htmlwin.h"
#include "wx/html/htmprint.h"
-#ifndef __WXMSW__
+#ifndef wxHAS_IMAGES_IN_RESOURCES
#include "../../sample.xpm"
#endif
MyFrame *frame = new MyFrame(_("Printing test"),
wxDefaultPosition, wxSize(640, 480));
- // Show it and tell the application that it's our main window
- // @@@ what does it do exactly, in fact? is it necessary here?
+ // Show it
frame->Show(true);
- SetTopWindow(frame);
-
// success: wxApp::OnRun() will be called which will enter the main message
// loop and the application will run. If we returned false here, the
// frame destructor
MyFrame::~MyFrame()
{
- delete m_Prn;
- m_Prn = (wxHtmlEasyPrinting *) NULL;
+ wxDELETE(m_Prn);
}