#include "l_bitmap.h"
L_LTDLG_API L_INT L_DlgPrintStitchedImages(hWndOwner, pDlgParams)
Displays the dialog box for printing multiple images.
Handle of the window that owns the dialog.
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.
The dialog for printing multiple images.
Value | Meaning |
---|---|
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
L_INT DlgPrintStitchedImagesFirstExample(HWND hWnd, LPDLGBITMAPLIST pList)
{
L_INT nRet;
PRINTSTITCHEDIMAGESDLGPARAMS DlgParams ;
memset ( &DlgParams, 0, sizeof ( PRINTSTITCHEDIMAGESDLGPARAMS ) ) ;
DlgParams.uStructSize = sizeof ( PRINTSTITCHEDIMAGESDLGPARAMS ) ;
DlgParams.pBitmapList = pList ;
DlgParams.nCmdShow = SW_SHOW ;
nRet = L_DlgInit ( DLG_INIT_COLOR ) ;
if(nRet != SUCCESS && nRet != ERROR_DLG_ALREADYINITIATED)
return nRet;
nRet = L_DlgPrintStitchedImages ( hWnd, &DlgParams ) ;
if(nRet < 1)
return nRet;
nRet = L_DlgFree () ;
if(nRet != SUCCESS)
return nRet;
if ( DlgParams.hDevMode )
{
GlobalFree ( DlgParams.hDevMode ) ;
}
if ( DlgParams.hDevNames )
{
GlobalFree ( DlgParams.hDevNames ) ;
}
return SUCCESS;
}
L_INT DlgPrintStitchedImagesSecondExample(HWND hWnd,pBITMAPHANDLE pBitmap)
{
L_INT nRet;
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 ;
nRet = DlgPrintStitchedImagesFirstExample( hWnd, &bmplist ) ;
return nRet;
}