ShowDilationFilterDlg Example for C++ 5.0 and later

void CDialogs::OnShowDilationFilterDlg()
{
   int nRet = 0; 

   m_pRasterImageEfxDlg->Bitmap = m_LeadRasterView.GetRaster ().GetBitmap ();
   m_pRasterImageEfxDlg->UIFlags = DILATIONFILTER_SHOW_PREVIEW |
                                   DILATIONFILTER_SHOW_TOOL_ZOOMLEVEL; 

   nRet = m_pRasterImageEfxDlg->ShowDilationFilterDlg((long)this->m_hWnd); 

   if (nRet == 0 && m_pRasterImageEfxDlg->DialogStatus == DLG_OK) 
   {
      nRet = m_pRasterProc->BinaryFilter (m_LeadRasterView.GetRaster (),
                                     m_pRasterImageEfxDlg->GetBinaryFilterType()
                                      ); 
   }
}