ShowMotionBlurDlg Example for C++ 5.0 and later

void CImageEffectView::OnMotionBlur ()
{
  int nRet; 
   m_pRasterImgEfxDlg->PutBitmap(m_RasterView.GetRaster().GetBitmap ());
   m_pRasterImgEfxDlg->PutEnableZoomToFit(TRUE); 
   m_pRasterImgEfxDlg ->ShowHelpButton= true; 
   m_pRasterImgEfxDlg->PutUIFlags( MOTIONBLUR_SHOW_PREVIEW |
                                           MOTIONBLUR_SHOW_TOOL_ZOOMLEVEL
                                        ); 

   nRet = m_pRasterImgEfxDlg->ShowMotionBlurDlg((long)this->m_hWnd); 
  
   if(nRet == 0 && m_pRasterImgEfxDlg->GetDialogStatus() == DLG_OK) 
   {
  
      nRet = m_pRasterProcess->MotionBlur (
                                             m_RasterView.GetRaster (),
                                             m_pRasterImgEfxDlg->GetDimension(), /* the property */
                                             m_pRasterImgEfxDlg->GetAngle(),
                                             m_pRasterImgEfxDlg->GetEnableUniDirectional());
  
   }
}

void CRasterImgEfxDlgSink::OnDlgHelp (long DlgFrom, long CtlID) 
{
   switch(DlgFrom) 
   {
      case HELP_MOTIONBLUR: 
      AfxMessageBox(TEXT("Help on Motion Blur Option"));
                break; 

      case HELP_RADIALBLUR: 
      AfxMessageBox(TEXT("Help on Radial Blur Option"));

      default: 
         AfxMessageBox(TEXT("No Help!")); 
 }
}