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

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 <DB.hpp>
  10. #include <Db.hpp>
  11. #include <DBGrids.hpp>
  12. #include <DBTables.hpp>
  13. #include <Grids.hpp>
  14. #include <Dialogs.hpp>
  15. //---------------------------------------------------------------------------
  16. class TForm1 : public TForm
  17. {
  18. __published: // IDE-managed Components
  19.         TButton *Button1;
  20.         TQuery *Query1;
  21.         TDataSource *DataSource1;
  22.         TDBGrid *DBGrid1;
  23.         TButton *Button2;
  24.         TOpenDialog *OpenDialog1;
  25.         TEdit *Edit1;
  26.         void __fastcall Button1Click(TObject *Sender);
  27.         void __fastcall Button2Click(TObject *Sender);
  28. private: // User declarations
  29. public: // User declarations
  30.         __fastcall TForm1(TComponent* Owner);
  31.         void __fastcall PaintText(TCanvas *cv,int xx,int yy,int ww,int hh,int indent,TAlignment al,AnsiString text);
  32.         AnsiString __fastcall GetFieldValue(TDataSet *Dset,AnsiString name);
  33.         int __fastcall PrintTableTitle(TDBGrid *DGrid,TCanvas *cv,int x1,int y1);
  34.         int __fastcall PrintTableItem(TDBGrid *DGrid,TCanvas *cv,int x1,int y1);
  35.         int __fastcall ToSz(int nn);
  36.         int PrnDpi,TabLeft,TabTop;
  37. };
  38. //---------------------------------------------------------------------------
  39. extern PACKAGE TForm1 *Form1;
  40. //---------------------------------------------------------------------------
  41. #endif