]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/paintdc.tex
Added wxDataViewModel::GetChildren() (removed GetSibling() and GetFirstChild())
[wxWidgets.git] / docs / latex / wx / paintdc.tex
CommitLineData
a660d684
KB
1\section{\class{wxPaintDC}}\label{wxpaintdc}
2
3A wxPaintDC must be constructed if an application wishes to paint on the
4client area of a window from within an {\bf OnPaint} event.
5This should normally be constructed as a temporary stack object; don't store
f60d0f94
JS
6a wxPaintDC object. If you have an OnPaint handler, you {\it must} create a wxPaintDC
7object within it even if you don't actually use it.
a660d684 8
884360bc
JS
9Using wxPaintDC within OnPaint is important because it automatically
10sets the clipping area to the damaged area of the window. Attempts to draw
11outside this area do not appear.
12
a660d684
KB
13To draw on a window from outside {\bf OnPaint}, construct a \helpref{wxClientDC}{wxclientdc} object.
14
15To draw on the whole window including decorations, construct a \helpref{wxWindowDC}{wxwindowdc} object
16(Windows only).
17
18\wxheading{Derived from}
19
f53561f1 20\helpref{wxWindowDC}{wxwindowdc}\\
7376079d
VZ
21\helpref{wxDC}{wxdc}\\
22\helpref{wxObject}{wxobject}
a660d684 23
954b8ae6
JS
24\wxheading{Include files}
25
26<wx/dcclient.h>
27
a7af285d
VZ
28\wxheading{Library}
29
30\helpref{wxCore}{librarieslist}
31
a660d684
KB
32\wxheading{See also}
33
34\helpref{wxDC}{wxdc}, \helpref{wxMemoryDC}{wxmemorydc}, \helpref{wxPaintDC}{wxpaintdc},\rtfsp
35\helpref{wxWindowDC}{wxwindowdc}, \helpref{wxScreenDC}{wxscreendc}
36
37\latexignore{\rtfignore{\wxheading{Members}}}
38
dcbd177f 39\membersection{wxPaintDC::wxPaintDC}\label{wxpaintdcctor}
a660d684
KB
40
41\func{}{wxPaintDC}{\param{wxWindow*}{ window}}
42
43Constructor. Pass a pointer to the window on which you wish to paint.
44
45
46