There are no real changes, just make it easier to understand that the sample
code overrides the base class virtual methods by reusing the virtual keyword
in the derived class.
See #12819.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66548
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
MyPrintout(MyFrame* frame, const wxString &title = wxT("My printout"))
: wxPrintout(title) { m_frame=frame; }
MyPrintout(MyFrame* frame, const wxString &title = wxT("My printout"))
: wxPrintout(title) { m_frame=frame; }
- bool OnPrintPage(int page);
- bool HasPage(int page);
- bool OnBeginDocument(int startPage, int endPage);
- void GetPageInfo(int *minPage, int *maxPage, int *selPageFrom, int *selPageTo);
+ virtual bool OnPrintPage(int page);
+ virtual bool HasPage(int page);
+ virtual bool OnBeginDocument(int startPage, int endPage);
+ virtual void GetPageInfo(int *minPage, int *maxPage, int *selPageFrom, int *selPageTo);
void DrawPageOne();
void DrawPageTwo();
void DrawPageOne();
void DrawPageTwo();