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
|
<HTML>
<head><title>wxClientDC</title></head>
<BODY BGCOLOR=#FFFFFF>
<A NAME="wxclientdc"></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="wx42.htm#wxclassinfo"><img align=center src="back.gif" BORDER=0 ALT="Previous"></A> <A HREF="wx44.htm#wxclipboard"><img align=center src="forward.gif" BORDER=0 ALT="Next"></A> </CENTER><HR>
<H2>wxClientDC</H2>
<P>
A wxClientDC must be constructed if an application wishes to paint on the
client area of a window from outside an <B>OnPaint</B> event.
This should normally be constructed as a temporary stack object; don't store
a wxClientDC object.<P>
To draw on a window from within <B>OnPaint</B>, construct a <A HREF="wx163.htm#wxpaintdc">wxPaintDC</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>
<wx/dcclient.h><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="#topic85">wxClientDC::wxClientDC</A><BR>
<P>
<HR>
<A NAME="topic85"></A>
<H3>wxClientDC::wxClientDC</H3>
<P>
<B></B> <B>wxClientDC</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>
|