Compartir a través de


CPrintDialog::GetDevMode

Retrieves the DEVMODE structure.

LPDEVMODE GetDevMode( ) const;

Return Value

The DEVMODE data structure, which contains information about the device initialization and environment of a print driver. You must unlock the memory taken by this structure with the Windows GlobalUnlock function, which is described in the Windows SDK.

Remarks

Call this function after calling DoModal or GetDefaults to retrieve information about the printing device.

Example

See the example for CPrintDialog::PrintCollate.

Requirements

Header: afxdlgs.h

See Also

Concepts

CPrintDialog Class

CPrintDialog Members

Hierarchy Chart

CDC::GetDeviceCaps