/////////////////////////////////////////////////////////////////////////////
// Name: printing.h
-// Purpose: Printing demo for wxWindows
+// Purpose: Printing demo for wxWidgets
// Author: Julian Smart
// Modified by:
// Created: 1995
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(__APPLE__)
#pragma interface
#endif
class MyApp: public wxApp
{
public:
- MyApp() ;
+ MyApp(){};
bool OnInit();
int OnExit();
- wxFont* m_testFont;
+ wxFont m_testFont;
};
DECLARE_APP(MyApp)
{
public:
MyCanvas(wxFrame *frame, const wxPoint& pos, const wxSize& size, long style = wxRETAINED);
- ~MyCanvas(void) ;
+ ~MyCanvas(void){};
virtual void OnDraw(wxDC& dc);
void OnEvent(wxMouseEvent& event);
class MyPrintout: public wxPrintout
{
public:
- MyPrintout(char *title = "My printout"):wxPrintout(title) {}
+ MyPrintout(wxChar *title = _T("My printout")):wxPrintout(title) {}
bool OnPrintPage(int page);
bool HasPage(int page);
bool OnBeginDocument(int startPage, int endPage);