Compartilhar via


CPrintDialog::GetDriverName

Retrieves the name of the currently selected printer driver.

CString GetDriverName( ) const;

Return Value

A CString specifying the system-defined driver name.

Remarks

Call this function after calling DoModal or GetDefaults to retrieve the name of the system-defined printer device driver. Use a pointer to the CString object returned by GetDriverName as the value of lpszDriverName in a call to CDC::CreateDC.

Example

See the example for CPrintDialog::GetDeviceName.

Requirements

Header: afxdlgs.h

See Also

Reference

CPrintDialog Class

Hierarchy Chart

CPrintDialog::GetDeviceName

CPrintDialog::GetDevMode

CPrintDialog::GetPortName

Other Resources

CPrintDialog Members