ShowSwirlDlg Example for C++ 5.0 and later

void CDialogs::OnShowSwirlDlg()
{
   int nRet; 
   
   m_pRasterImageEfxDlg->UIFlags = SWIRL_SHOW_PREVIEW |
                                 SWIRL_SHOW_TOOL_ZOOMLEVEL; 

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

   nRet= m_pRasterImageEfxDlg->ShowSwirlDlg((long)this->m_hWnd); 
   if (nRet == 0 && m_pRasterImageEfxDlg->DialogStatus == DLG_OK) 
   {
      m_pRasterProc->Swirl(m_LeadRasterView.GetRaster (),
                          m_pRasterImageEfxDlg->Angle
                          m_pRasterImageEfxDlg->CenterX
                          m_pRasterImageEfxDlg->CenterY
                           ); 
   }
}