PRINTPREVIEWDLGPARAMS

Summary

The PRINTSTITCHEDIMAGESDLGPARAMS structure provides information used to initialize the dialog box created by the L_DlgPrintStitchedImages function. After the user closes the dialog box, this structure is updated with information about the user's selections.

Syntax

typedef struct _PRINTPREVIEWDLGPARAMS 
{ 
   L_UINT uStructSize ; 
   pBITMAPHANDLE pBitmap ; 
   HICON hWindowIcon ; 
   HGLOBAL hDevMode ; 
   HGLOBAL hDevNames ; 
   RECT rcMargins ; 
   RECT rcMinMargins ; 
   L_INT nCmdShow ; 
   LTCOMMDLGHELPCB pfnHelpCallback; 
   L_VOID *pHelpCallBackUserData ; 
} PRINTPREVIEWDLGPARAMS, * LPPRINTPREVIEWDLGPARAMS ; 

Members

uStructSize

Size of this structure, in bytes. Use the sizeof operator to calculate this value.

hWindowIcon

Handle to the icon to use for the print window's system menu. Pass NULL to use the default icon.

pBitmap

Pointer to the bitmap handle that references the bitmap used for print preview.

hDevMode

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

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

If hDevMode is NULL on input, the dialog may allocate memory for the DEVMODE structure, initialize its members to indicate the user's input, and return a handle that identifies it. In this case you should free the handle using GlobalFree() when the dialog is closed.

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

hDevNames

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

If hDevNames is not NULL on input, you must allocate a movable block of memory for the DEVNAMES structure and initialize its members.

If hDevNames is NULL on input, the dialog may allocate memory for the DEVNAMES structure, initialize its members to indicate the user's input, and return a handle that identifies it. In this case you should free the handle using GlobalFree() when the dialog is closed.

This structure contains three strings that specify the driver name, the printer name, and the output port name, which are used to set or preserve printer settings. Set this member to NULL to use the default printer settings.

rcMargins

Specifies the widths of the left, top, right, and bottom margins, in thousandths of an inch. For more information on the margins, refer to the Microsoft SDK documentation — Windows User Interface — PAGESETUPDLG.

rcMinMargins

Specifies the minimum allowable widths for the left, top, right, and bottom margins, in thousandths of an inch. These values must be less than or equal to the values specified in the rcMargins member. For more information on the margins, refer to the Microsoft SDK documentation — Windows User Interface — PAGESETUPDLG.

nCmdShow

Flag that indicates the display state of the preview window. This is the same flag passed to the ShowWindow windows C API function. Refer to the Microsoft SDK documentation — Windows User Interface — ShowWindow for more information.

pfnHelpCallback

Pointer to an optional help callback function. If you do not wish to provide help to this dialog, use NULL as the value of this parameter. To provide help to this dialog, use the function pointer as the value of this parameter. The callback function must adhere to the prototype described in LTCOMMDLGHELPCB.

pHelpCallBackUserData

Void pointer that you can use to pass one or more additional parameters that the callback function needs. To use this feature, assign a value to a variable or create a structure that contains as many fields as you need. Then, in this parameter, pass the address of the variable or structure, casting it to L_VOID *. The callback function, which receives the address in its own pHelpCallBackUserData parameter, can cast it to a pointer of the appropriate data type to access your variable or structure. If the additional parameters are not needed, you can pass NULL in this parameter.

Usage

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Common Dialog C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.