ShowPrintStitchedImagesDlg Example for C++ 5.0 and later

void CDialogs::OnJPEGWebTuner()
{
	HRESULT hr;
	int nRet;

	ILEADRasterDlgKrn_U *m_pRasterDlgKrn = NULL;
	hr = CoCreateInstance(CLSID_LEADRasterDlgKrn_U,
		NULL,
		CLSCTX_ALL,
		IID_ILEADRasterDlgKrn_U,
		(LPVOID*)&m_pRasterDlgKrn);

	ILEADRasterDlgFile_U *m_pRasterDlgFile = NULL;
	hr = CoCreateInstance(CLSID_LEADRasterDlgFile_U,
		NULL,
		CLSCTX_ALL,
		IID_ILEADRasterDlgFile_U,
		(LPVOID*)&m_pRasterDlgFile);

	nRet = m_pRasterDlgKrn->InitDlg(INIT_WITH_COLOR);

	m_pRasterDlgFile->ItemsCount= 3; 
	m_pRasterDlgFile->PutItemFileName(0,"D:\\Images\\Vista\\Forest.jpg");
	m_pRasterDlgFile->PutItemFileName(1,"D:\\Images\\Vista\\Dock.jpg"); 
	m_pRasterDlgFile->PutItemFileName(2,"D:\\Images\\Vista\\Creek.jpg");

	for (int i= 0; i < m_pRasterDlgFile->ItemsCount; i ++ ) 
	{
		m_pLead1.Load (m_pRasterDlgFile->GetItemFileName(i), 0, 0, 1); 
		m_pRasterDlgFile->PutItemDescription(i, m_pRasterDlgFile->GetItemFileName(i)); 
		m_pRasterDlgFile->PutItemBitmap(i, m_pLead1.GetBitmap());
	}

	m_pRasterDlgFile->ShowPrintStitchedImagesDlg((long)m_hWnd); 
}