ShowPrintStitchedImagesDlg example for C++ Builder
L_INT TForm1::DoPrintStitchedImages ( L_HGLOBAL hDevMode,
L_HGLOBAL hDevNames,
RECT rcMargin,
RECT rcMinMargins,
TIcon * Icon )
{
L_INT i;
L_INT nRet;
AnsiString FileNames[3]= { "e:\\image1.jpg", "e:\\image2.jpg", "e:\\image3.jpg" };
LEADDlgFile1->MarginsRect = rcMargin;
LEADDlgFile1->MinMarginsRect = rcMinMargins;
LEADDlgFile1->DevModeHandle = hDevMode;
LEADDlgFile1->DevNamesHandle = hDevNames;
LEADDlgFile1->WindowIcon = Icon;
LEADDlgFile1->CommandShow = SW_SHOW;
LEADDlgFile1->ItemsCount = 3;
for ( i= 0; i < 3; i ++ )
{
LEADImage2->LoadStamp ( FileNames[i] );
LEADDlgFile1->ItemDescription [i]= IntToStr(i);
LEADDlgFile1->ItemFileName [i]= FileNames[i];
LEADDlgFile1->ItemBitmap [i]= LEADImage2->Bitmap;
}
return LEADDlgFile1->ShowPrintStitchedImagesDlg ( this );
}