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
|
<HTML>
<head><title>wxPrinterDC</title></head>
<BODY BGCOLOR=#FFFFFF>
<A NAME="wxprinterdc"></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="wx178.htm#wxprinter"><img align=center src="back.gif" BORDER=0 ALT="Previous"></A> <A HREF="wx180.htm#wxprintout"><img align=center src="forward.gif" BORDER=0 ALT="Next"></A> </CENTER><HR>
<H2>wxPrinterDC</H2>
<P>
A printer device context is specific to Windows, and allows access to
any printer with a Windows driver. See <A HREF="wx65.htm#wxdc">wxDC</A> for further information
on device contexts, and <A HREF="wx65.htm#wxdcgetsize">wxDC::GetSize</A> for advice on
achieving the correct scaling for the page.<P>
<B><FONT COLOR="#FF0000">Derived from</FONT></B><P>
<A HREF="wx65.htm#wxdc">wxDC</A><BR>
<A HREF="wx65.htm#wxdc">wxObject</A><P>
<B><FONT COLOR="#FF0000">Include files</FONT></B><P>
<wx/dcprint.h><P>
<B><FONT COLOR="#FF0000">See also</FONT></B><P>
<A HREF="wx65.htm#wxdc">wxDC</A>, <A HREF="wx302.htm#printingoverview">Printing framework overview</A><P>
<B><FONT COLOR="#FF0000">Members</FONT></B><P>
<A HREF="#topic675">wxPrinterDC::wxPrinterDC</A><BR>
<P>
<HR>
<A NAME="topic675"></A>
<H3>wxPrinterDC::wxPrinterDC</H3>
<P>
<B></B> <B>wxPrinterDC</B>(<B>const wxString& </B><I>driver</I>, <B>const wxString& </B><I>device</I>, <B>const wxString& </B><I>output</I>,
<B>const bool </B><I>interactive = TRUE</I>, <B>int </B><I>orientation = wxPORTRAIT</I>)<P>
Constructor. With empty strings for the first three arguments, the default printer dialog is
displayed. <I>device</I> indicates the type of printer and <I>output</I>
is an optional file for printing to. The <I>driver</I> parameter is
currently unused. Use the <I>Ok</I> member to test whether the
constructor was successful in creating a useable device context.<P>
</BODY></HTML>
|