List of all members.
Public Member Functions
|ClientDC (Window window)|
|ClientDC (IntPtr wxObject)|
A 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 ClientDC object.
To draw on a window from within OnPaint, construct a PaintDC object.
To draw on the whole window including decorations, construct a WindowDC object (Windows only).
Please note, that you have to dispose this context as soon as you stop drawing explicitely. In C++ wxWidgets this is done explicitely when creating objects of this class in a local scope. The object will be deleted when leaving this scope implicitely. However, .NET implements an implicit destruction of objects using a garbage collector. So, you have either to use the key word
using or the ethod wx.Object.Dispose() to delete a DC immediately after using it.