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 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
|
<HTML>
<head><title>wxScreenDC</title></head>
<BODY BGCOLOR=#FFFFFF>
<A NAME="wxscreendc"></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="wx199.htm#wxsashwindow"><img align=center src="back.gif" BORDER=0 ALT="Previous"></A> <A HREF="wx201.htm#wxscrollbar"><img align=center src="forward.gif" BORDER=0 ALT="Next"></A> </CENTER><HR>
<H2>wxScreenDC</H2>
<P>
A wxScreenDC can be used to paint on the screen.
This should normally be constructed as a temporary stack object; don't store
a wxScreenDC object.<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/dcscreen.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="wx43.htm#wxclientdc">wxClientDC</A>, <A HREF="wx261.htm#wxwindowdc">wxWindowDC</A><P>
<B><FONT COLOR="#FF0000">Members</FONT></B><P>
<A HREF="#topic805">wxScreenDC::wxScreenDC</A><BR>
<A HREF="#wxscreendcstartdrawingontop">wxScreenDC::StartDrawingOnTop</A><BR>
<A HREF="#wxscreendcenddrawingontop">wxScreenDC::EndDrawingOnTop</A><BR>
<P>
<HR>
<A NAME="topic805"></A>
<H3>wxScreenDC::wxScreenDC</H3>
<P>
<B></B> <B>wxScreenDC</B>()<P>
Constructor.<P>
<HR>
<A NAME="wxscreendcstartdrawingontop"></A>
<H3>wxScreenDC::StartDrawingOnTop</H3>
<P>
<B>bool</B> <B>StartDrawingOnTop</B>(<B>wxWindow*</B><I> window</I>)<P>
<B>bool</B> <B>StartDrawingOnTop</B>(<B>wxRect*</B><I> rect = NULL</I>)<P>
Use this in conjunction with <A HREF="wx200.htm#wxscreendcenddrawingontop">EndDrawingOnTop</A> to
ensure that drawing to the screen occurs on top of existing windows. Without this,
some window systems (such as X) only allow drawing to take place underneath
other windows.<P>
By using the first form of this function, an application is specifying that
the area that will be drawn on coincides with the given window.<P>
By using the second form, an application can specify an area of the screen
which is to be drawn on. If NULL is passed, the whole screen is available.<P>
It is recommended that an area of the screen is specified because with large regions,
flickering effects are noticeable when destroying the temporary transparent window used
to implement this feature.<P>
You might use this pair of functions when implementing a drag feature, for example
as in the <A HREF="wx217.htm#wxsplitterwindow">wxSplitterWindow</A> implementation.<P>
<HR>
<A NAME="wxscreendcenddrawingontop"></A>
<H3>wxScreenDC::EndDrawingOnTop</H3>
<P>
<B>bool</B> <B>EndDrawingOnTop</B>()<P>
Use this in conjunction with <A HREF="wx200.htm#wxscreendcstartdrawingontop">StartDrawingOnTop</A>.<P>
This function destroys the temporary window created to implement on-top drawing (X only).<P>
</BODY></HTML>
|