ShowRemoveRedeyeDlg example for C++ Builder

void __fastcall TForm1::ShowRemoveRedeyeDlg1Click(TObject *Sender) 
{
   L_INT nRet; 
   LEADDlgImgDoc1->ZoomToFit = false; 
   LEADDlgImgDoc1->DlgFlags = DLG_REMOVEREDEYE_SHOW_PREVIEW |
                              DLG_REMOVEREDEYE_SHOW_TOOL_ZOOMLEVEL; 

   LEADDlgImgDoc1->LEADImage= LEADImage1; 
   LEADDlgImgDoc1->LEADDlgService = LEADDlgService1; 
   LEADDlgImgDoc1->EnableMethodErrors = false; 
    LEADDlgImgDoc1->ShowHelpButton = true; 

   nRet= LEADDlgImgDoc1->ShowRemoveRedeyeDlg ( this ); 
   if ( nRet == SUCCESS_DLG_OK ) 
   {
      LEADImage1->RemoveRedeye ( LEADDlgImgDoc1->NewColor, LEADDlgImgDoc1->Threshold, LEADDlgImgDoc1->Lightness ); 
   }
}

void __fastcall TForm1::LEADDlgImgDoc1DlgHelp(DWORD uDialogID) 
{
   switch ( uDialogID ) 
   {
      case DLG_HELP_REMOVEREDEYE: 
         ShowMessage( "Help from Remove Red eye dialog" ); 
         break; 

      case DLG_HELP_SMOOTH: 
         ShowMessage( "Help from Smooth dialog" ); 
         break; 

      case DLG_HELP_LINEREMOVE: 
         ShowMessage( "Help from Line-Remove dialog" ); 
         break; 

      case DLG_HELP_BORDERREMOVE: 
         ShowMessage( "Help from Border-Remove dialog" ); 
         break; 

      case DLG_HELP_INVERTEDTEXT: 
         ShowMessage( "Help from Inverted-Text dialog" ); 
         break; 

      case DLG_HELP_DOTREMOVE: 
         ShowMessage( "Help from Dot-Remove dialog" ); 
         break; 

      case DLG_HELP_HOLEPUNCHREMOVE: 
         ShowMessage( "Help from Hole-Punch-Remove dialog" ); 
         break; 
   }
}