// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#if defined(__GNUG__) && !defined(__APPLE__)
-#pragma interface
-#endif
-
// Define a new application
class MyApp: public wxApp
{
{
public:
MyCanvas *canvas;
+ wxBitmap m_bitmap;
+ int m_angle;
MyFrame(wxFrame *frame, const wxString& title, const wxPoint& pos, const wxSize& size);
void Draw(wxDC& dc);
+ void OnAngleUp(wxCommandEvent& event);
+ void OnAngleDown(wxCommandEvent& event);
void OnSize(wxSizeEvent& event);
void OnPrint(wxCommandEvent& event);
class MyPrintout: public wxPrintout
{
public:
- MyPrintout(wxChar *title = _T("My printout")):wxPrintout(title) {}
+ MyPrintout(const wxChar *title = _T("My printout")):wxPrintout(title) {}
bool OnPrintPage(int page);
bool HasPage(int page);
bool OnBeginDocument(int startPage, int endPage);
#define WXPRINT_ABOUT 109
+#define WXPRINT_ANGLEUP 110
+#define WXPRINT_ANGLEDOWN 111