ShowCylindricalDlg Example for C++ 5.0 and later

void CDialogs::OnShowCylindricalDlg()
{
   int nRet; 
   m_pRasterImageEfxDlg->UIFlags = CYLINDRICAL_SHOW_PREVIEW |
                                 CYLINDRICAL_SHOW_TOOL_ZOOMLEVEL; 

   m_pRasterImageEfxDlg->Bitmap = m_LeadRasterView.GetRaster ().GetBitmap ();
   
   nRet= m_pRasterImageEfxDlg->ShowCylindricalDlg((long)this->m_hWnd); 
   
   if (nRet == 0 && m_pRasterImageEfxDlg->DialogStatus == DLG_OK) 
   {
      m_pRasterProc->Cylindrical(m_LeadRasterView.GetRaster (),
                                 m_pRasterImageEfxDlg->Value
                                 (CylindricalBitmapConstants)m_pRasterImageEfxDlg->ImageEffectFlags 
                                 ); 
   }
}