ShowRemoveRedEyeDlg Example for C++ 5.0 and later

void CDialogs::OnShowRemoveRedEyeDlg()
{
   int nRet; 
   m_pRasterImgDocDlg->EnableZoomToFit= false; 
   m_pRasterImgDocDlg->UIFlags= REMOVEREDEYE_SHOW_PREVIEW |
                             REMOVEREDEYE_SHOW_TOOL_ZOOMLEVEL; 

   m_pRasterImgDocDlg->PutBitmap(m_LeadRasterView.GetRaster().GetBitmap ());

   m_pRasterImgDocDlg->EnableMethodErrors= false; 

   nRet= m_pRasterImgDocDlg->ShowRemoveRedEyeDlg((long)this->m_hWnd); 
   if (nRet == 0 && m_pRasterImgDocDlg->DialogStatus== DLG_OK) 
   {
      m_pRasterProc->RemoveRedeye (m_LeadRasterView.GetRaster (),
                                    m_pRasterImgDocDlg->NewColor
                                    m_pRasterImgDocDlg->Threshold
                                    m_pRasterImgDocDlg->Lightness ); 
   }
}
void CRasterImgDocDlgSink::OnDlgHelp(long DlgFrom, long CtlID) 
{
   switch(DlgFrom) 
   {
      case HELP_REMOVEREDEYE: 
      AfxMessageBox(TEXT("Help from Remove Red eye dialog "));
                break; 

      case HELP_SMOOTH: 
      AfxMessageBox(TEXT("Help from Smooth dialog "));

      case HELP_REMOVEREDEYE: 
      AfxMessageBox(TEXT("Help from Remove Red eye dialog "));
                break; 

      case HELP_LINEREMOVE: 
      AfxMessageBox(TEXT("Help from Line-Remove dialog "));

      case HELP_BORDERREMOVE: 
      AfxMessageBox(TEXT("Help from Border-Remove dialog "));
                break; 

      case HELP_INVERTEDTEXT: 
      AfxMessageBox(TEXT("Help from Inverted-Text dialog "));

      case HELP_DOTREMOVE: 
      AfxMessageBox(TEXT("Help from Dot-Remove dialog "));
                break; 

      case HELP_HOLEPUNCHREMOVE: 
      AfxMessageBox(TEXT("Help from Hole-Punch-Remove dialog "));

  }
}