ShowMinFilterDlg Example for C++ 5.0 and later

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

   m_pRasterImageEfxDlg->Dimension = 10; 
   m_pRasterImageEfxDlg->Bitmap = m_LeadRasterView.GetRaster ().GetBitmap ();
   m_pRasterImageEfxDlg->UIFlags = MINFILTER_SHOW_PREVIEW |
                                   MINFILTER_SHOW_TOOL_ZOOMLEVEL; 

   nRet = m_pRasterImageEfxDlg->ShowMinFilterDlg((long)this->m_hWnd); 
  
   if (nRet == 0 && m_pRasterImageEfxDlg->DialogStatus == DLG_OK) 
   {
      nRet = m_pRasterProc->MinFilter (m_LeadRasterView.GetRaster (),
                                     m_pRasterImageEfxDlg->Dimension
                                   ); 
   }
}