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 <Grids.hpp>
  10. //---------------------------------------------------------------------------
  11. class TForm1 : public TForm
  12. {
  13. __published: // IDE-managed Components
  14.         TStringGrid *StringGrid1;
  15.         TButton *Button1;
  16.         TButton *Button2;
  17.         void __fastcall Button1Click(TObject *Sender);
  18.         void __fastcall StringGrid1DrawCell(TObject *Sender, int ACol,
  19.           int ARow, TRect &Rect, TGridDrawState State);
  20. private: // User declarations
  21. public: // User declarations
  22.         __fastcall TForm1(TComponent* Owner);
  23.         void __fastcall PaintText(int x,int y,int col,AnsiString text,int align);
  24.         void __fastcall PaintText1(int x,int y,int col,AnsiString text,int align);
  25. };
  26. //---------------------------------------------------------------------------
  27. extern PACKAGE TForm1 *Form1;
  28. //---------------------------------------------------------------------------
  29. #endif