Inheritance diagram for wx.ClientDC:
A wx.ClientDC 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 wx.ClientDC object.
To draw on a window from within OnPaint, construct a wx.PaintDC object. To draw on the whole window including decorations, construct a wx.WindowDC object (Windows only).
See also