contents up previous next

wxclientdc

a wxclientdc must be constructed if an application wishes to paint on the client area of a window from outside an onpaint event. this should normally be constructed as a temporary stack object; don't store a wxclientdc object.

to draw on a window from within onpaint, construct a wxpaintdc object.

to draw on the whole window including decorations, construct a wxwindowdc object (windows only).

derived from

wxwindowdc
wxdc wxobject

include files

<wx/dcclient.h>

see also

wxdc, wxmemorydc, wxpaintdc, wxwindowdc, wxscreendc

members

wxclientdc::wxclientdc


wxclientdc::wxclientdc

wxclientdc(wxwindow* window)

constructor. pass a pointer to the window on which you wish to paint.