ShowHolePunchRemoveDlg Example for C++ 5.0 and later
void CDialogs::OnShowHolePunchRemoveDlg()
{
m_pRasterImgDocDlg->HolePunchRemove->MinHoleCount= 2;
m_pRasterImgDocDlg->HolePunchRemove->MaxHoleCount= 4;
m_pRasterImgDocDlg->HolePunchRemove->MinHoleWidth= 0;
m_pRasterImgDocDlg->HolePunchRemove->MinHoleHeight= 0;
m_pRasterImgDocDlg->HolePunchRemove->MaxHoleWidth= 0;
m_pRasterImgDocDlg->HolePunchRemove->MaxHoleHeight= 0;
m_pRasterImgDocDlg->HolePunchRemove->PutLocation(HOLEPUNCH_LEFT);
m_pRasterImgDocDlg->HolePunchRemove->PutFlags(HOLEPUNCH_USE_DPI);
m_pRasterImgDocDlg->UIFlags = HOLEPUNCHREMOVE_AUTOPROCESS|
HOLEPUNCHREMOVE_SHOW_PREVIEW |
HOLEPUNCHREMOVE_SHOW_TOOL_ZOOMLEVEL;
m_pRasterImgDocDlg->WhiteAreaColor = RGB ( 255, 0, 0 );
m_pRasterImgDocDlg->BlackAreaColor = RGB ( 0, 0, 255 );
m_pRasterImgDocDlg->PutBitmap (m_LeadRasterView.GetRaster ().GetBitmap ());
m_pRasterImgDocDlg->ShowHolePunchRemoveDlg((long)this->m_hWnd);
}