Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

CWinApp::SelectPrinter

Call this member function to select a specific printer, and release the printer that was previously selected in the Print Dialog box.

void SelectPrinter( 
   HANDLE hDevNames, 
   HANDLE hDevMode, 
   BOOL bFreeOld = TRUE  
);
hDevNames

A handle to a DEVNAMES structure that identifies the driver, device, and output port names of a specific printer.

hDevMode

A handle to a DEVMODE structure that specifies information about the device initialization and environment of a printer.

bFreeOld

Frees the previously-selected printer.

If both hDevMode and hDevNames are NULL, SelectPrinter uses the current default printer.

Header: afxwin.h

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.