Unit1.h
上传用户:lhxd_sz
上传日期:2014-10-02
资源大小:38814k
文件大小:1k
源码类别:

VC书籍

开发平台:

C++ Builder

  1. //---------------------------------------------------------------------------
  2. #ifndef Unit1H
  3. #define Unit1H
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. #include <ExtCtrls.hpp>
  10. #include <Graphics.hpp>
  11. #include <FileCtrl.hpp>
  12. //---------------------------------------------------------------------------
  13. class TForm1 : public TForm
  14. {
  15. __published: // IDE-managed Components
  16.         TListBox *ListBox1;
  17.         TImage *Image1;
  18.         TImage *Image2;
  19.         TImage *Image3;
  20.         TImage *Image4;
  21.         TDirectoryListBox *DirectoryListBox1;
  22.         TDriveComboBox *DriveComboBox1;
  23.         void __fastcall ListBox1DrawItem(TWinControl *Control, int Index,
  24.           TRect &Rect, TOwnerDrawState State);
  25.         void __fastcall DirectoryListBox1Change(TObject *Sender);
  26.         void __fastcall DriveComboBox1Change(TObject *Sender);
  27. private: // User declarations
  28. public: // User declarations
  29.         __fastcall TForm1(TComponent* Owner);
  30.         void __fastcall AddFileToList(AnsiString filename,int attr);
  31. };
  32. //---------------------------------------------------------------------------
  33. extern PACKAGE TForm1 *Form1;
  34. //---------------------------------------------------------------------------
  35. #endif