CaptureEXEDlg Example for C++ 5.0 and later
/*display CaptureExe Dialog*/
m_pRasterScr1.CaptureEXEDlg((long)this->m_hWnd, 0, "c:\\windows\\calc.exe", SCR_CAP_ALL, SCR_CAP_EXEDLG_TREEVIEW);
/*copy the captured image to a Main Control*/
m_LEADRasterView1.GetRaster().SetBitmap(m_pRasterScr1.GetBitmap ());
/*display results*/
CString csRes;
csRes.Format(TEXT("ResType: %d\nResIndex: %d\nResID: %s\nExeName: %s\n"),
m_pRasterScr1.GetCaptureInfoResType(),
m_pRasterScr1.GetCaptureInfoResIndex(),
m_pRasterScr1.GetCaptureInfoResourceId(),
m_pRasterScr1.GetCaptureInfoExeName());
AfxMessageBox(csRes);