1 \section{\class{wxPaintDC
}}\label{wxpaintdc
}
3 A wxPaintDC must be constructed if an application wishes to paint on the
4 client area of a window from within an
{\bf OnPaint
} event.
5 This should normally be constructed as a temporary stack object; don't store
8 Using wxPaintDC within OnPaint is important because it automatically
9 sets the clipping area to the damaged area of the window. Attempts to draw
10 outside this area do not appear.
12 To draw on a window from outside
{\bf OnPaint
}, construct a
\helpref{wxClientDC
}{wxclientdc
} object.
14 To draw on the whole window including decorations, construct a
\helpref{wxWindowDC
}{wxwindowdc
} object
17 \wxheading{Derived from
}
23 \helpref{wxDC
}{wxdc
},
\helpref{wxMemoryDC
}{wxmemorydc
},
\helpref{wxPaintDC
}{wxpaintdc
},
\rtfsp
24 \helpref{wxWindowDC
}{wxwindowdc
},
\helpref{wxScreenDC
}{wxscreendc
}
26 \latexignore{\rtfignore{\wxheading{Members
}}}
28 \membersection{wxPaintDC::wxPaintDC
}
30 \func{}{wxPaintDC
}{\param{wxWindow*
}{ window
}}
32 Constructor. Pass a pointer to the window on which you wish to paint.