Unitcontrol.h
上传用户:cqslgg
上传日期:2009-12-10
资源大小:128k
文件大小:2k
- //---------------------------------------------------------------------------
- #ifndef UnitcontrolH
- #define UnitcontrolH
- //---------------------------------------------------------------------------
- #include <Classes.hpp>
- #include <Controls.hpp>
- #include <StdCtrls.hpp>
- #include <Forms.hpp>
- #include <ExtCtrls.hpp>
- #include <FileCtrl.hpp>
- //---------------------------------------------------------------------------
- class TMainForm : public TForm
- {
- __published: // IDE-managed Components
- TTimer *Timer1;
- TImage *Image1;
- TFileListBox *File1;
- void __fastcall Timer1Timer(TObject *Sender);
- void __fastcall FormCreate(TObject *Sender);
- void __fastcall FormKeyDown(TObject *Sender, WORD &Key,
- TShiftState Shift);
- void __fastcall FormMouseDown(TObject *Sender, TMouseButton Button,
- TShiftState Shift, int X, int Y);
- void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
- void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
- void __fastcall FormMouseMove(TObject *Sender, TShiftState Shift,
- int X, int Y);
- void __fastcall Image1MouseMove(TObject *Sender, TShiftState Shift,
- int X, int Y);
- void __fastcall Image1MouseDown(TObject *Sender,
- TMouseButton Button, TShiftState Shift, int X, int Y);
- private: // User declarations
- DWORD PWProtect;
- DWORD Version;
- String picdir;
- int frequence;
- bool stoploop;
- bool stopcls;
- bool bussy;
- void clsscreen(TImage * image);
- public: // User declarations
- __fastcall TMainForm(TComponent* Owner);
- void __fastcall Fade(Graphics::TBitmap *Pic,TCanvas *dest);
- // void Fade2(TImage * Pic, TCanvas * dest);
- };
- //---------------------------------------------------------------------------
- extern PACKAGE TMainForm *MainForm;
- //---------------------------------------------------------------------------
- #endif