CaptureOptionDlg Example for C++ 5.0 and later
void CScrCapDlg::TestCapture()
{
short nRet;
m_pRasterScr->PutShowHelpButton(TRUE);
/*disable errors to check for cancel*/
m_pRasterScr->PutEnableMethodErrors(FALSE);
/*display capture option dialog*/
nRet = m_pRasterScr->CaptureOptionDlg((long)m_pMainWnd->m_hWnd, 0);
if (nRet != 0)
{
if (nRet != ERROR_USER_ABORT)
AfxMessageBox(TEXT("Error setting options!"));
}
}
void CRasterScrSink::OnScreenDlgHelp(long DlgFrom, long CtlID)
{
//...
// set your code ...
//...
}