]> git.saurik.com Git - wxWidgets.git/blobdiff - docs/latex/wx/paintdc.tex
set up scrollbars correctly when we don't need them (fixes the problems reported...
[wxWidgets.git] / docs / latex / wx / paintdc.tex
index 5589b42648dc6bb661c1b7ee351cdfc3e12a5e1a..0ef431e78543079d5ca4be48641707373d6773de 100644 (file)
@@ -3,7 +3,8 @@
 A wxPaintDC must be constructed if an application wishes to paint on the
 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.
+a wxPaintDC object. If you have an OnPaint handler, you {\it must} create a wxPaintDC
+object within it even if you don't actually use it.
 
 Using wxPaintDC within OnPaint is important because it automatically
 sets the clipping area to the damaged area of the window. Attempts to draw
@@ -16,8 +17,13 @@ To draw on the whole window including decorations, construct a \helpref{wxWindow
 
 \wxheading{Derived from}
 
+\helpref{wxWindowDC}{wxwindowdc}\\
 \helpref{wxDC}{wxdc}
 
+\wxheading{Include files}
+
+<wx/dcclient.h>
+
 \wxheading{See also}
 
 \helpref{wxDC}{wxdc}, \helpref{wxMemoryDC}{wxmemorydc}, \helpref{wxPaintDC}{wxpaintdc},\rtfsp
@@ -25,7 +31,7 @@ To draw on the whole window including decorations, construct a \helpref{wxWindow
 
 \latexignore{\rtfignore{\wxheading{Members}}}
 
-\membersection{wxPaintDC::wxPaintDC}
+\membersection{wxPaintDC::wxPaintDC}\label{wxpaintdcctor}
 
 \func{}{wxPaintDC}{\param{wxWindow*}{ window}}