]> git.saurik.com Git - wxWidgets.git/blame_incremental - docs/latex/wx/paintdc.tex
1. Split{Horizontal|Vertical} now accept negative args to set the
[wxWidgets.git] / docs / latex / wx / paintdc.tex
... / ...
CommitLineData
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
6a wxPaintDC object.
7
8Using wxPaintDC within OnPaint is important because it automatically
9sets the clipping area to the damaged area of the window. Attempts to draw
10outside this area do not appear.
11
12To draw on a window from outside {\bf OnPaint}, construct a \helpref{wxClientDC}{wxclientdc} object.
13
14To draw on the whole window including decorations, construct a \helpref{wxWindowDC}{wxwindowdc} object
15(Windows only).
16
17\wxheading{Derived from}
18
19\helpref{wxDC}{wxdc}
20
21\wxheading{See also}
22
23\helpref{wxDC}{wxdc}, \helpref{wxMemoryDC}{wxmemorydc}, \helpref{wxPaintDC}{wxpaintdc},\rtfsp
24\helpref{wxWindowDC}{wxwindowdc}, \helpref{wxScreenDC}{wxscreendc}
25
26\latexignore{\rtfignore{\wxheading{Members}}}
27
28\membersection{wxPaintDC::wxPaintDC}
29
30\func{}{wxPaintDC}{\param{wxWindow*}{ window}}
31
32Constructor. Pass a pointer to the window on which you wish to paint.
33
34
35