ShowDotRemoveDlg Example for C++ 5.0 and later

void CDialogs::OnShowDotRemoveDlg()
{
   m_pRasterImgDocDlg->DotRemove->MinDotWidth= 6; 
   m_pRasterImgDocDlg->DotRemove->MinDotHeight= 6; 
   m_pRasterImgDocDlg->DotRemove->MaxDotWidth = 8; 
   m_pRasterImgDocDlg->DotRemove->MaxDotHeight= 8; 
   m_pRasterImgDocDlg->DotRemove->PutFlags(DOT_USE_DIAGONALS | DOT_USE_DPI); 
   
   m_pRasterImgDocDlg->PutWhiteAreaColor(RGB(255,0, 0)); 
   m_pRasterImgDocDlg->PutBlackAreaColor(RGB(0, 0, 255)); 
   m_pRasterImgDocDlg->UIFlags = DOTREMOVE_AUTOPROCESS |
                             DOTREMOVE_SHOW_PREVIEW |
                             DOTREMOVE_SHOW_TOOL_ZOOMLEVEL; 

   m_pRasterImgDocDlg->PutBitmap (m_LeadRasterView.GetRaster ().GetBitmap ());
   m_pRasterImgDocDlg->ShowDotRemoveDlg((long)this->m_hWnd);