ShowSmoothDlg Example for C++ 5.0 and later

void CDialogs::OnShowSmoothDlg()
{
   int nRet; 
   m_pRasterImgDocDlg->GetSmooth()->PutFlags(SMOOTH_ALLFLAGS); 
   m_pRasterImgDocDlg->GetSmooth()->Length= 1; 
   m_pRasterImgDocDlg->WhiteAreaColor= RGB ( 255, 0, 0 ); 
   m_pRasterImgDocDlg->BlackAreaColor= RGB ( 0, 0, 255 ); 
   m_pRasterImgDocDlg->UIFlags = SMOOTH_SHOW_PREVIEW |
                              SMOOTH_SHOW_TOOL_ZOOMLEVEL; 

   m_pRasterImgDocDlg->PutBitmap (m_LeadRasterView.GetRaster ().GetBitmap ());

  nRet = m_pRasterImgDocDlg->ShowSmoothDlg((long)this->m_hWnd); 
   if (nRet == 0 && m_pRasterImgDocDlg->DialogStatus == DLG_OK) 
   {
      m_pRasterProc->Smooth (m_LeadRasterView.GetRaster (),
                              m_pRasterImgDocDlg->GetSmooth()->Length
                              m_pRasterImgDocDlg->GetSmooth()->GetFlags()
                           ); 
   }
   m_LeadRasterView.ForceRepaint ();
}