File: wx163.htm

package info (click to toggle)
wxwin2-doc 2.01-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 6,540 kB
  • ctags: 5,968
  • sloc: cpp: 15,157; makefile: 434; sh: 6
file content (40 lines) | stat: -rw-r--r-- 2,037 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<HTML>
<head><title>wxPaintDC</title></head>

<BODY BGCOLOR=#FFFFFF>
<A NAME="wxpaintdc"></A><CENTER>
<A HREF="wx.htm"><img align=center src="contents.gif" BORDER=0 ALT="Contents"></A> <A HREF="wx22.htm#classref"><img align=center src="up.gif" BORDER=0 ALT="Up"></A> <A HREF="wx162.htm#wxpagesetupdialog"><img align=center src="back.gif" BORDER=0 ALT="Previous"></A> <A HREF="wx164.htm#wxpaintevent"><img align=center src="forward.gif" BORDER=0 ALT="Next"></A> </CENTER><HR>

<H2>wxPaintDC</H2>
<P>
A wxPaintDC must be constructed if an application wishes to paint on the
client area of a window from within an <B>OnPaint</B> event.
This should normally be constructed as a temporary stack object; don't store
a wxPaintDC object. If you have an OnPaint handler, you <I>must</I> create a wxPaintDC
object within it even if you don't actually use it.<P>
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.<P>
To draw on a window from outside <B>OnPaint</B>, construct a <A HREF="wx43.htm#wxclientdc">wxClientDC</A> object.<P>
To draw on the whole window including decorations, construct a <A HREF="wx261.htm#wxwindowdc">wxWindowDC</A> object
(Windows only).<P>
<B><FONT COLOR="#FF0000">Derived from</FONT></B><P>
<A HREF="wx65.htm#wxdc">wxDC</A><P>
<B><FONT COLOR="#FF0000">Include files</FONT></B><P>
&lt;wx/dcclient.h&gt;<P>
<B><FONT COLOR="#FF0000">See also</FONT></B><P>
<A HREF="wx65.htm#wxdc">wxDC</A>, <A HREF="wx137.htm#wxmemorydc">wxMemoryDC</A>, <A HREF="wx163.htm#wxpaintdc">wxPaintDC</A>,
<A HREF="wx261.htm#wxwindowdc">wxWindowDC</A>, <A HREF="wx200.htm#wxscreendc">wxScreenDC</A><P>
<B><FONT COLOR="#FF0000">Members</FONT></B><P>
<A HREF="#topic632">wxPaintDC::wxPaintDC</A><BR>
<P>

<HR>
<A NAME="topic632"></A>
<H3>wxPaintDC::wxPaintDC</H3>
<P>
<B></B> <B>wxPaintDC</B>(<B>wxWindow*</B><I> window</I>)<P>
Constructor. Pass a pointer to the window on which you wish to paint.<P>
<P>

</BODY></HTML>