CaptureAreaOptionDlg Example for C++ 5.0 and later
/*set options*/
m_pRasterScr1.CaptureAreaOptionDlg((long)this->m_hWnd, 0);
/*do a capture using these options*/
m_pRasterScr1.CaptureArea(m_pRasterScr1.GetCaptureAreaType ());
/*copy the captured image to a Main Control*/
m_LEADRasterView1.GetRaster().SetBitmap(m_pRasterScr1.GetBitmap ());
/*display the capture result info*/
CString csRes;
csRes.Format(TEXT("Top: %f\nLeft: %f\nWidth: %f\nHeight: %f\n"),
m_pRasterScr1.GetCaptureInfoTop(),
m_pRasterScr1.GetCaptureInfoLeft(),
m_pRasterScr1.GetCaptureInfoWidth(),
m_pRasterScr1.GetCaptureInfoHeight());
AfxMessageBox(csRes);
/*reset area options*/
m_pRasterScr1.ResetAreaOptions();