ShowOpenDlg example for C++ Builder

void __fastcall TForm1::ShowOpenDlg1Click(TObject *Sender) 
{
   L_INT nRet; 

   LEADDlgFile1->DialogTitle = "LEADTOOLS Open dialog box";
   LEADDlgFile1->InitialDir = "c:\\images";
   LEADDlgFile1->DlgFileFlags = 0; 
   LEADDlgFile1->PreviewEnabled = true; 
   LEADDlgFile1->ShowLoadOptions = false; 
   LEADDlgFile1->LoadRotated = false; 
   LEADDlgFile1->LoadCompressed = false; 
   LEADDlgFile1->LoadPasses = 0; 
   LEADDlgFile1->MaxFileSize = 0; 
   LEADDlgFile1->MaxFileTitleSize = 0; 

   LEADDlgFile1->DlgFlags = DLG_OPEN_SHOW_PROGRESSIVE    |
                           DLG_OPEN_SHOW_MULTIPAGE      |
                           DLG_OPEN_SHOW_LOADROTATED    |
                           DLG_OPEN_SHOW_LOADCOMPRESSED |
                           DLG_OPEN_SHOW_FILEINFO       |
                           DLG_OPEN_SHOW_PREVIEW        |
                           DLG_OPEN_SHOW_DELPAGE        |
                           DLG_OPEN_VIEWTOTALPAGES; 

   nRet= LEADDlgFile1->ShowOpenDlg ( this ); 
   if ( nRet == SUCCESS_DLG_OK ) 
   {
      LEADImage1->Load (LEADDlgFile1->FileName, 0, LEADDlgFile1->PageNumber, 1 ); 
      Edit1->Text= LEADDlgFile1->FileName
      Edit2->Text= LEADDlgFile1->FileTitle
      Edit3->Text= IntToStr ( LEADDlgFile1->PageNumber ); 
   }
}