contents up previous next

wxwindowdc

a wxwindowdc must be constructed if an application wishes to paint on the whole area of a window (client and decorations). this should normally be constructed as a temporary stack object; don't store a wxwindowdc object.

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

to draw on the client area of a window from outside onpaint, construct a wxclientdc object.

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

derived from

wxdc

include files

<wx/dcclient.h>

see also

wxdc, wxmemorydc, wxpaintdc, wxclientdc, wxscreendc

members

wxwindowdc::wxwindowdc


wxwindowdc::wxwindowdc

wxwindowdc(wxwindow* window)

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