1998-05-20 14:25:30 +00:00
|
|
|
\section{\class{wxPaintDC}}\label{wxpaintdc}
|
|
|
|
|
|
|
|
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
|
1998-12-23 09:58:02 +00:00
|
|
|
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.
|
1998-05-20 14:25:30 +00:00
|
|
|
|
1998-07-03 16:39:59 +00:00
|
|
|
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.
|
|
|
|
|
1998-05-20 14:25:30 +00:00
|
|
|
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
|
|
|
|
(Windows only).
|
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxDC}{wxdc}
|
|
|
|
|
1999-02-15 20:41:29 +00:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/dcclient.h>
|
|
|
|
|
1998-05-20 14:25:30 +00:00
|
|
|
\wxheading{See also}
|
|
|
|
|
|
|
|
\helpref{wxDC}{wxdc}, \helpref{wxMemoryDC}{wxmemorydc}, \helpref{wxPaintDC}{wxpaintdc},\rtfsp
|
|
|
|
\helpref{wxWindowDC}{wxwindowdc}, \helpref{wxScreenDC}{wxscreendc}
|
|
|
|
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
|
|
|
\membersection{wxPaintDC::wxPaintDC}
|
|
|
|
|
|
|
|
\func{}{wxPaintDC}{\param{wxWindow*}{ window}}
|
|
|
|
|
|
|
|
Constructor. Pass a pointer to the window on which you wish to paint.
|
|
|
|
|
|
|
|
|
|
|
|
|