ShowRippleDlg Example for C++ 5.0 and later

void CDialogs::OnShowRippleDlg()
{
   int nRet; 
   m_pRasterImageEfxDlg->Amplitude = 100; 
   m_pRasterImageEfxDlg->Frequency = 50; 
   m_pRasterImageEfxDlg->UIFlags = RIPPLE_SHOW_PREVIEW |
                                RIPPLE_SHOW_TOOL_ZOOMLEVEL; 

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

   nRet= m_pRasterImageEfxDlg->ShowRippleDlg((long)this->m_hWnd); 
   
   if (nRet == 0 && m_pRasterImageEfxDlg->DialogStatus == DLG_OK) 
   {
      m_pRasterProc->Ripple (m_LeadRasterView.GetRaster (),
                          m_pRasterImageEfxDlg->Amplitude
                          m_pRasterImageEfxDlg->Frequency
                          m_pRasterImageEfxDlg->Phase
                          m_pRasterImageEfxDlg->Attenuation
                          m_pRasterImageEfxDlg->CenterX
                          m_pRasterImageEfxDlg->CenterY
                          m_pRasterImageEfxDlg->FillColor
                          m_pRasterImageEfxDlg->ImageEffectFlags ); 
   }
}