ShowPolarDlg Example for C++ 5.0 and later

void CDialogs::OnShowPolarDlg()
{
    int nRet;; 
   m_pRasterImageEfxDlg->ImageEffectFlags = FILL_CLR | CART_TO_POL; 
   m_pRasterImageEfxDlg->FillColor = RGB ( 0, 0, 220 ); 
   m_pRasterImageEfxDlg->UIFlags = POLAR_SHOW_PREVIEW |
                                 POLAR_SHOW_TOOL_ZOOMLEVEL; 

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

   nRet= m_pRasterImageEfxDlg->ShowPolarDlg((long)this->m_hWnd); 
   
   if (nRet == 0 && m_pRasterImageEfxDlg->DialogStatus == DLG_OK) 
   {
      m_pRasterProc->Polar(m_LeadRasterView.GetRaster (),
                            m_pRasterImageEfxDlg->FillColor
                            m_pRasterImageEfxDlg->ImageEffectFlags
                          ); 

   }
}