DevModeHandle property (LEADDlgFile Control)

C++ Builder example

Delphi 4.0 example

 

Builder Syntax

L_HGLOBAL DevModeHandle

Delphi Syntax

DevModeHandle: L_HGLOBAL

Overview

Refer to Using Imaging Common Dialogs.

Remarks

Handle to a movable global memory object that contains a DEVMODE Microsoft Windows structure. For more information please refer to Microsoft’s SDK documentation.

If DevModeHandle is not 0 on input, you must allocate a movable block of memory for the DEVMODE structure and initialize its members.

If DevModeHandle is 0 on input, the dialog may allocate memory for the DEVMODE structure, initialize its members to indicate the user's input, and update the DevModeHandle property by it.

This handle is used to set or preserve printing settings. Set this property to 0 to use the default printer settings.

See Also

Elements:

ShowPrintPreviewDlg method, ShowPrintStitchedImagesDlg method, DevNamesHandle property

Topics:

Imaging Common Dialogs: Properties, Methods, and Events