Bagikan melalui


CPrintDialogEx::GetDeviceName

Call this function after calling DoModal to retrieve the name of the currently selected printer, or after calling GetDefaults to retrieve the name of the default printer.

CString GetDeviceName( ) const;

Return Value

The name of the currently selected printer.

Remarks

Use a pointer to the CString object returned by GetDeviceName as the value of lpszDeviceName in a call to CDC::CreateDC.

Requirements

Header: afxdlgs.h

See Also

Reference

CPrintDialogEx Class

Hierarchy Chart

CPrintDialogEx::GetDriverName

CPrintDialogEx::GetDevMode

CPrintDialogEx::GetPortName