📄 main.h
字号:
//---------------------------------------------------------------------------
#ifndef mainH
#define mainH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include "GraphBmp.h"
#include "common.h"
#include <time.h>
#include "datamodule.h"
#include "trayicon.h"
#include <ImgList.hpp>
#include <AppEvnts.hpp>
#include "MonthDay.h"
//---------------------------------------------------------------------------
class TMainForm : public TForm
{
__published: // IDE-managed Components
TTimer *Timer1;
TTrayIcon *TrayIcon1;
TImageList *ImageList1;
TApplicationEvents *ApplicationEvents1;
void __fastcall FormCreate(TObject *Sender);
void __fastcall FormDestroy(TObject *Sender);
void __fastcall Timer1Timer(TObject *Sender);
void __fastcall ApplicationEvents1Minimize(TObject *Sender);
void __fastcall ApplicationEvents1Restore(TObject *Sender);
private:
void __fastcall CreateParams(TCreateParams & Params);
void __fastcall DrawMemBmp(void);
public: // User declarations
TMainData *m_pMainData;
TDM *m_pDatabase;
TImage *m_pLogoImg;
TImage *m_pLastImg;
TImage *m_pMainImg;
TImage *m_pSetupImg;
TImage *m_pMinImg;
TImage *m_pCloseImg;
Graphics::TBitmap *m_pMemBitmap;
String m_szMainHint;
TPanel *pTimePanel;
TPanel *pTextPanel;
bool m_bOverSetup;
bool m_bOverMin;
bool m_bOverClose;
bool m_bOverMove;
int m_iCopyIndex;
int m_iCopyLeft;
time_t m_tmPreTime;
bool m_bOverPanel;
TWndMethod m_pOldProc;
VetBitmapList m_pvBitmapList;
__fastcall TMainForm(TComponent* Owner);
void __fastcall InitLogo(void);
void __fastcall InitLast(void);
void __fastcall InitMainImg(void);
void __fastcall InitSetupImg();
void __fastcall ImageMouseMove(TObject* Sender, TShiftState Shift, int X, int Y);
void __fastcall LoadSetupImg(bool bMouseOver);
void __fastcall InitMinImg(void);
void __fastcall LoadMinImg(bool bMouseOver);
void __fastcall InitCloseImg(void);
void __fastcall LoadCloseImg(bool bMouseOver);
void __fastcall MouseClickImg(TObject * Sender);
void __fastcall ImageMouseDown(TObject* Sender, TMouseButton Button, TShiftState Shift, int X, int Y);
void __fastcall MyWinProc(TMessage & Message);
LPBITMAPVET __fastcall GetFirstBitmap();
int __fastcall GetCurrentWidth(void);
void __fastcall AddNewBitmap(int iWidth);
LPBITMAPVET __fastcall GetNextBitmap(LPBITMAPVET pBitmap);
void __fastcall MyException(System::TObject* Sender, Sysutils::Exception* E);
};
//---------------------------------------------------------------------------
extern PACKAGE TMainForm *MainForm;
//---------------------------------------------------------------------------
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -