ShowTransitionDlg Example for C++ 5.0 and later

void CDialogs::OnShowTransitionDlg() 
{
    int nRet; 
   m_pRasterEfxDlg->Transition->TransitionStyle= EFX_TRANSITION_NONE; 
   m_pRasterEfxDlg->Transition->EffectStyle= EFX_EFFECT_WIPE_CIRCLE_CLASS;
   m_pRasterEfxDlg->Transition->ForeColor= RGB ( 255, 255, 0 ); 
   m_pRasterEfxDlg->Transition->BackColor= RGB ( 255, 0, 255 ); 
   m_pRasterEfxDlg->Transition->Steps= 120; 
   m_pRasterEfxDlg->Transition->Delay= 20; 
   m_pRasterEfxDlg->Transition->Grain= 5; 
   m_pRasterEfxDlg->Transition->WandThickness= 5; 
   m_pRasterEfxDlg->Transition->WandColor= RGB ( 255, 255, 0 ); 
   m_pRasterEfxDlg->Transition->Transparent= TRUE; 
   m_pRasterEfxDlg->Transition->TransparentColor= RGB ( 255, 0, 0 ); 
   m_pRasterEfxDlg->UIFlags= TRANSITION_SHOW_PREVIEW    |
                             TRANSITION_FORECOLOR       |
                             TRANSITION_BACKCOLOR       |
                             TRANSITION_DELAY           |
                             TRANSITION_GRAIN           |
                             TRANSITION_EFFECT          |
                             TRANSITION_PASSES          |
                             TRANSITION_WAND            |
                             TRANSITION_TRANSPARENT     |
                             TRANSITION_GRADIENT; 

   m_pRasterEfxDlg->Bitmap = m_LeadRasterView.GetRaster().GetBitmap ();
   nRet =m_pRasterEfxDlg->ShowTransitionDlg((long)this->m_hWnd); 
   if ( nRet == 0 && m_pRasterEfxDlg->DialogStatus ==DLG_OK ) 
   {
    CString csRes1; 
    CString csRes2; 
    CString csRes3; 
    
    csRes1.Format(TEXT("Effect: %d\nGrain: %d\nDelay: %d\nMaxPass: %d\nTransparent: %d\n"),
                  m_pRasterEfxDlg->Transition->TransitionStyle,//the property
                  m_pRasterEfxDlg->Transition->Grain
                  m_pRasterEfxDlg->Transition->Delay
                  m_pRasterEfxDlg->Transition->MaxPass
                  m_pRasterEfxDlg->Transition->Transparent
                  ); 
    
    csRes2.Format(TEXT("TransparentColor: %ld\nWandWidth: %d\nWandColor: %ld\n"),
                  m_pRasterEfxDlg->Transition->TransparentColor
                  m_pRasterEfxDlg->Transition->WandThickness
                  m_pRasterEfxDlg->Transition->WandColor
                  ); 
    
    csRes3.Format(TEXT("Transition: %d\nGradientSteps: %d\nBackColor: %ld\nForeColor: %ld"),
                  m_pRasterEfxDlg->Transition->TransitionStyle
                  m_pRasterEfxDlg->Transition->Steps
                  m_pRasterEfxDlg->Transition->BackColor
                  m_pRasterEfxDlg->Transition->ForeColor
                  ); 
    AfxMessageBox(csRes1 + csRes2 + csRes3); 
   }