Unit1.h
上传用户:jjjzlw
上传日期:2022-05-15
资源大小:695k
文件大小:2k
源码类别:

按钮控件

开发平台:

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 <jpeg.hpp>
  12. #include <Buttons.hpp>
  13. #define WM_MY_OPEN_CMDLINE_FILE (WM_USER+1) //进程间通讯的自定义消息
  14. //---------------------------------------------------------------------------
  15. class TForm1 : public TForm
  16. {
  17. __published: // IDE-managed Components
  18.         TButton *Button5;
  19.         TEdit *Edit1;
  20.         void __fastcall FormCreate(TObject *Sender);
  21.         void __fastcall Button5MouseMove(TObject *Sender,
  22.           TShiftState Shift, int X, int Y);
  23.         void __fastcall FormMouseMove(TObject *Sender, TShiftState Shift,
  24.           int X, int Y);
  25.         void __fastcall Button5MouseDown(TObject *Sender,
  26.           TMouseButton Button, TShiftState Shift, int X, int Y);
  27.         void __fastcall Button5Click(TObject *Sender);
  28.         void __fastcall Button5MouseUp(TObject *Sender,
  29.           TMouseButton Button, TShiftState Shift, int X, int Y);
  30.         void __fastcall Button5KeyPress(TObject *Sender, char &Key);
  31.         void __fastcall FormKeyUp(TObject *Sender, WORD &Key,
  32.           TShiftState Shift);
  33.         void __fastcall Button5EndDock(TObject *Sender, TObject *Target,
  34.           int X, int Y);
  35.         void __fastcall Button5EndDrag(TObject *Sender, TObject *Target,
  36.           int X, int Y);
  37.         void __fastcall Button5DragOver(TObject *Sender, TObject *Source,
  38.           int X, int Y, TDragState State, bool &Accept);
  39.         void __fastcall Button5DragDrop(TObject *Sender, TObject *Source,
  40.           int X, int Y);
  41. private:        // private user declarations
  42.         void __fastcall TForm1::NewProc3(TMessage &Msg);
  43. public: // User declarations
  44.         __fastcall TForm1(TComponent* Owner);
  45. };
  46. //---------------------------------------------------------------------------
  47. extern PACKAGE TForm1 *Form1;
  48. //---------------------------------------------------------------------------
  49. #endif