PRINTSTITCHEDIMAGESDLGPARAMS

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 _PRINTSTITCHEDIMAGESDLGPARAMS 
{ 
   L_UINT uStructSize ; 
   HICON hWindowIcon ; 
   LPDLGBITMAPLIST pBitmapList ; 
   HGLOBAL hDevMode ; 
   HGLOBAL hDevNames ; 
   RECT rcMargins ; 
   RECT rcMinMargins ; 
   L_INT nCmdShow ; 
   LTCOMMDLGHELPCB pfnHelpCallback; 
   L_VOID *pHelpCallBackUserData ; 
} PRINTSTITCHEDIMAGESDLGPARAMS, * LPPRINTSTITCHEDIMAGESDLGPARAMS ; 

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.

pBitmapList

Pointer to a DLGBITMAPLIST structure that is used to initialize the image picker in the dialog. The pszDescription member of the DLGBITMAPLIST structure will be used as a tool tip for each image in the image picker when the mouse hovers over it. And the szFileName member of the DLGBITMAPLIST structure is ignored.

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.