contents up previous next

wxpreviewcanvas

a preview canvas is the default canvas used by the print preview system to display the preview.

derived from

wxscrolledwindow
wxwindow
wxevthandler
wxobject

include files

<wx/print.h>

see also

wxpreviewframe, wxpreviewcontrolbar, wxprintpreview

members

wxpreviewcanvas::wxpreviewcanvas
wxpreviewcanvas::~wxpreviewcanvas
wxpreviewcanvas::onpaint


wxpreviewcanvas::wxpreviewcanvas

wxpreviewcanvas(wxprintpreview* preview, wxwindow* parent, const wxpoint& pos = wxdefaultposition, const wxsize& size = wxdefaultsize, long style = 0, const wxstring& name = "canvas")

constructor.


wxpreviewcanvas::~wxpreviewcanvas

~wxpreviewcanvas()

destructor.


wxpreviewcanvas::onpaint

void onpaint(wxpaintevent& event)

calls wxprintpreview::paintpage to refresh the canvas.