Steve Cookson wrote:
Hi,
I'm beginning to think maybe I've misunderstood the point of virtual
functions and wrapping wxRichTextPrintout.
I'm trying to put a bitmap header and footer onto each page 1 has a
different page number from other pages, so I thought if I wrapped
wxRichTextPrintout, since it is inherited from wxPrintout, I could access
the calls to GetDC & HasPage.
And then I could write to the DC to put in the bitmaps.
Have I misunderstood, or is this a possible way to achieve this objective?
Any better ideas, gratefully received.
I haven't used this class myself, but from looking at the
documentation, I think you understood correctly.
Speaking of virtual methods, I just committed a small introduction
that should work for basic cases (which should include all methods in
wxRichTextPrintout). You will need the latest ExtUtils::XS++ (0.11_01).
HTH,
Mattia