ShowEdgeDetectorDlg Example for C++ 5.0 and later

void CDialogs::OnShowEdgeDetectorDlg()
{
   int nRet; 
   m_pRasterImageEfxDlg->UIFlags = EDGEDETECTOR_SHOW_PREVIEW |
                                EDGEDETECTOR_SHOW_TOOL_ZOOMLEVEL; 

   m_pRasterImageEfxDlg->Bitmap = m_LeadRasterView.GetRaster ().GetBitmap ();

   nRet= m_pRasterImageEfxDlg->ShowEdgeDetectorDlg((long)this->m_hWnd); 
   
   if (nRet == 0 && m_pRasterImageEfxDlg->DialogStatus == DLG_OK) 
   {
      m_pRasterProc-> EdgeDetector (m_LeadRasterView.GetRaster (),
                                 m_pRasterImageEfxDlg->Threshold
                                 m_pRasterImageEfxDlg->GetEdgeDetectionFilterType()
                                 ); 
   }
}