YOU CAN CODE!

 

With The Case Of UCanCode.net  Release The Power OF  Visual C++ !   HomeProducts | PurchaseSupport | Downloads  
Download Evaluation
Pricing & Purchase?
E-XD++Visual C++/ MFC Products
Overview
Features Tour 
Electronic Form Solution
Visualization & HMI Solution
Power system HMI Solution
CAD Drawing and Printing Solution

Bar code labeling Solution
Workflow Solution

Coal industry HMI Solution
Instrumentation Gauge Solution

Report Printing Solution
Graphical modeling Solution
GIS mapping solution

Visio graphics solution
Industrial control SCADA &HMI Solution
BPM business process Solution

Industrial monitoring Solution
Flowchart and diagramming Solution
Organization Diagram Solution

Graphic editor Source Code
UML drawing editor Source Code
Map Diagramming Solution

Architectural Graphic Drawing Solution
Request Evaluation
Purchase
ActiveX COM Products
Overview
Download
Purchase
Technical Support
  General Q & A
Discussion Board
Contact Us

Links

Get Ready to Unleash the Power of UCanCode .NET


UCanCode Software focuses on general application software development. We provide complete solution for developers. No matter you want to develop a simple database workflow application, or an large flow/diagram based system, our product will provide a complete solution for you. Our product had been used by hundreds of top companies around the world!

"100% source code provided! Free you from not daring to use components because of unable to master the key technology of components!"


VC++ MFC Tutorial: The CPrintDialog Class

 
 

MFC Note: The CPrintDialog Class

The CPrintDialog class encapsulates the standard Print dialog used in most Windows applications. This class contains most of the methods in the CPageSetupDialog, except for GetPaperSize and GetMargin. All the rest of the functions in Table 6.10 are available in the CPrintDialog class. Table 6.11 lists the other primary functions in this class.

Table 6.11 Primary CPrintDialog Member Functions

Function

Description

GetCopies

Returns the number of copies specified to be printed.

GetFromPage

Returns the starting page number when a range of pages have been specified to be printed.

GetToPage

Returns the ending page number when a range of pages have been specified to be printed.

GetPrinterDC

Returns a handle to the device context for the printer specified.

PrintAll

Returns a Boolean value specifying whether to print all pages of the current document.

PrintCollate

Returns a Boolean value specifying whether users requested that the printed output be collated.

PrintRange

Returns a Boolean value specifying whether users specified a range of pages to be printed.

PrintSelection

Returns a Boolean value specifying whether to print only the selected items or pages.

Unlike with the CPageSetupDialog, you can call the CreatePrinterDC method without having called the DoModal method. In fact, you don't have to show the dialog at all, but you can use the class just to get the printer information and device context, so you can print to the current printer without displaying a dialog. 

 

Copyright ?1998-2022 UCanCode.Net Software , all rights reserved.
Other product and company names herein may be the trademarks of their respective owners.

Please direct your questions or comments to webmaster@ucancode.net