ShowWindDlg Example for C++ 5.0 and later

void CDialogs::OnShowWindDlg()
{
   int nRet; 
   m_pRasterImageEfxDlg->Angle = 4500; 
   m_pRasterImageEfxDlg->Dimension = 40; 
   m_pRasterImageEfxDlg->UIFlags = WIND_SHOW_PREVIEW |
                                WIND_SHOW_TOOL_ZOOMLEVEL; 

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

   nRet= m_pRasterImageEfxDlg->ShowWindDlg((long)this->m_hWnd); 
   if (nRet == 0 && m_pRasterImageEfxDlg->DialogStatus == DLG_OK) 
   {
      m_pRasterProc->Wind (m_LeadRasterView.GetRaster (),
                           m_pRasterImageEfxDlg->Dimension
                           m_pRasterImageEfxDlg->Angle
                           m_pRasterImageEfxDlg->Opacity 
                           ); 
   }
}