Unit1.h
资源名称:XPbutton.rar [点击查看]
上传用户:jjjzlw
上传日期:2022-05-15
资源大小:695k
文件大小:2k
源码类别:
按钮控件
开发平台:
C++ Builder
- //---------------------------------------------------------------------------
- #ifndef Unit1H
- #define Unit1H
- //---------------------------------------------------------------------------
- #include <Classes.hpp>
- #include <Controls.hpp>
- #include <StdCtrls.hpp>
- #include <Forms.hpp>
- #include <ExtCtrls.hpp>
- #include <Graphics.hpp>
- #include <jpeg.hpp>
- #include <Buttons.hpp>
- #define WM_MY_OPEN_CMDLINE_FILE (WM_USER+1) //进程间通讯的自定义消息
- //---------------------------------------------------------------------------
- class TForm1 : public TForm
- {
- __published: // IDE-managed Components
- TButton *Button5;
- TEdit *Edit1;
- void __fastcall FormCreate(TObject *Sender);
- void __fastcall Button5MouseMove(TObject *Sender,
- TShiftState Shift, int X, int Y);
- void __fastcall FormMouseMove(TObject *Sender, TShiftState Shift,
- int X, int Y);
- void __fastcall Button5MouseDown(TObject *Sender,
- TMouseButton Button, TShiftState Shift, int X, int Y);
- void __fastcall Button5Click(TObject *Sender);
- void __fastcall Button5MouseUp(TObject *Sender,
- TMouseButton Button, TShiftState Shift, int X, int Y);
- void __fastcall Button5KeyPress(TObject *Sender, char &Key);
- void __fastcall FormKeyUp(TObject *Sender, WORD &Key,
- TShiftState Shift);
- void __fastcall Button5EndDock(TObject *Sender, TObject *Target,
- int X, int Y);
- void __fastcall Button5EndDrag(TObject *Sender, TObject *Target,
- int X, int Y);
- void __fastcall Button5DragOver(TObject *Sender, TObject *Source,
- int X, int Y, TDragState State, bool &Accept);
- void __fastcall Button5DragDrop(TObject *Sender, TObject *Source,
- int X, int Y);
- private: // private user declarations
- void __fastcall TForm1::NewProc3(TMessage &Msg);
- public: // User declarations
- __fastcall TForm1(TComponent* Owner);
- };
- //---------------------------------------------------------------------------
- extern PACKAGE TForm1 *Form1;
- //---------------------------------------------------------------------------
- #endif