L_DlgPrintStitchedImages
#include "l_bitmap.h"
L_INT EXT_FUNCTION L_DlgPrintStitchedImages(hWndOwner, pDlgParams)
HWND hWndOwner; |
/* owner of the dialog */ |
LPPRINTSTITCHEDIMAGESDLGPARAMS pDlgParams; |
/* pointer to a structure */ |
Displays the dialog box for printing multiple images.
Parameter |
Description |
hWndOwner |
Handle of the window that owns the dialog. |
pDlgParams |
Pointer to a PRINTSTITCHEDIMAGESDLGPARAMS structure to be updated with the values entered by the user through the dialog. Set members of this structure, before calling this function, to set the dialog's initial values. |
Comments
The dialog for printing multiple images can be seen below:
Returns
SUCCESS_DLG_EXIT |
"Exit" was selected from the menu or the window was closed, and the dialog exited successfully. |
< 1 |
An error occurred. Refer to Return Codes. |
Required DLLs and Libraries
LTDLGFILE For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application |
See Also
Functions: |
L_DlgInit, L_DlgPrintPreview, L_PrintBitmapFast, L_PrintBitmap |
Topics: |
|
|
Example
L_VOID ShowMultiImagesPrint
(
HWND hWnd,
pBITMAPHANDLE pBitmap,
LPDLGBITMAPLIST pList
)
{
PRINTSTITCHEDIMAGESDLGPARAMS DlgParams ;
memset ( &DlgParams, 0, sizeof ( PRINTSTITCHEDIMAGESDLGPARAMS ) ) ;
DlgParams.uStructSize = sizeof ( PRINTSTITCHEDIMAGESDLGPARAMS ) ;
DlgParams.pBitmapList = pList ;
DlgParams.nCmdShow = SW_SHOW ;
L_DlgInit ( DLG_INIT_COLOR ) ;
L_DlgPrintStitchedImages ( hWnd, &DlgParams ) ;
L_DlgFree ( ) ;
if ( DlgParams.hDevMode )
{
GlobalFree ( DlgParams.hDevMode ) ;
}
if ( DlgParams.hDevNames )
{
GlobalFree ( DlgParams.hDevNames ) ;
}
}
L_VOID DoMultiPrintSingleImage
(
HWND hWnd,
pBITMAPHANDLE pBitmap
)
{
DLGBITMAPLISTITEM Items [ 1 ] ;
DLGBITMAPLIST bmplist ;
Items [ 0 ].pszDescription = NULL ;
Items [ 0 ].pszFileName = NULL ;
Items [ 0 ].pBitmap = pBitmap ;
bmplist.uStructSize = sizeof ( DLGBITMAPLIST ) ;
bmplist.pBitmapList = Items ;
bmplist.nCount = 1 ;
ShowMultiImagesPrint ( hWnd, pBitmap, &bmplist ) ;
}