ShowBorderRemoveDlg Example for C++ 5.0 and later
void CDialogs::OnShowRemoveRedEyeDlg()
{
int nRet;
m_pRasterImgDocDlg->EnableZoomToFit = false;
m_pRasterImgDocDlg->UIFlags = REMOVEREDEYE_SHOW_PREVIEW |
REMOVEREDEYE_SHOW_TOOL_ZOOMLEVEL;
m_pRasterImgDocDlg->PutBitmap (m_LeadRasterView.GetRaster ()GetBitmap ());
m_pRasterImgDocDlg->EnableMethodErrors = false;
nRet= m_pRasterImgDocDlg->ShowRemoveRedEyeDlg ((long)this->m_hWnd);
if (nRet == 0 && m_pRasterImgDocDlg->DialogStatus == DLG_OK)
{
m_pRasterProc->RemoveRedeye (m_LeadRasterView.GetRaster (),
m_pRasterImgDocDlg->NewColor,
m_pRasterImgDocDlg->Threshold,
m_pRasterImgDocDlg->Lightness );
}
}