]> git.saurik.com Git - wxWidgets.git/blobdiff - docs/latex/wx/paintdc.tex
Some manual updates; in MDI sample, child frames now have default size/position ...
[wxWidgets.git] / docs / latex / wx / paintdc.tex
index e1c416044bfc31324088a0debb71c5433b90a2ef..5589b42648dc6bb661c1b7ee351cdfc3e12a5e1a 100644 (file)
@@ -5,6 +5,10 @@ client area of a window from within an {\bf OnPaint} event.
 This should normally be constructed as a temporary stack object; don't store
 a wxPaintDC object.
 
+Using wxPaintDC within OnPaint is important because it automatically
+sets the clipping area to the damaged area of the window. Attempts to draw
+outside this area do not appear.
+
 To draw on a window from outside {\bf OnPaint}, construct a \helpref{wxClientDC}{wxclientdc} object.
 
 To draw on the whole window including decorations, construct a \helpref{wxWindowDC}{wxwindowdc} object