ShowWaveDlg Example for C++ 5.0 and later

void CDialogs::OnShowWaveDlg()
{
   int nRet; 
   
   m_pRasterImageEfxDlg->UIFlags = WAVE_SHOW_PREVIEW |
                                 WAVE_SHOW_TOOL_ZOOMLEVEL; 

   m_pRasterImageEfxDlg->Bitmap = m_LeadRasterView.GetRaster ().GetBitmap ();
   nRet= m_pRasterImageEfxDlg->ShowWaveDlg((long)this->m_hWnd); 
   if (nRet == 0 && m_pRasterImageEfxDlg->DialogStatus == DLG_OK) 
   {
      m_pRasterProc->Wave(m_LeadRasterView.GetRaster (),
                        m_pRasterImageEfxDlg->Amplitude
                        m_pRasterImageEfxDlg->WaveLength
                        m_pRasterImageEfxDlg->Angle
                        m_pRasterImageEfxDlg->HorizontalScale
                        m_pRasterImageEfxDlg->VerticalScale
                        m_pRasterImageEfxDlg->FillColor
                        m_pRasterImageEfxDlg->ImageEffectFlags 
                        ); 
   }
}