📄 main.h
字号:
//---------------------------------------------------------------------------
#ifndef MainH
#define MainH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include <Graphics.hpp>
//---------------------------------------------------------------------------
// the form's height
const int FORMHEIGHT = 240;
class TFormMain : public TForm
{
__published: // IDE-managed Components
TImage *Image1;
TShape *ShapeClient;
TImage *ImageClose;
TImage *ImageTitle;
TLabel *LabelTitle;
TImage *ImageSystem;
TImage *ImageMinimize;
TImage *ImageZoom;
void __fastcall FormCreate(TObject *Sender);
void __fastcall ImageTitleMouseDown(TObject *Sender,
TMouseButton Button, TShiftState Shift, int X, int Y);
void __fastcall FormDestroy(TObject *Sender);
void __fastcall ImageSystemMouseDown(TObject *Sender,
TMouseButton Button, TShiftState Shift, int X, int Y);
void __fastcall ImageSystemDblClick(TObject *Sender);
void __fastcall ImageSystemClick(TObject *Sender);
private: // User declarations
// == 界面代码 ==========================================================
Graphics::TBitmap *bmpTitleAct;
Graphics::TBitmap *bmpTitleInact;
Graphics::TBitmap *bmpSysAct;
Graphics::TBitmap *bmpSysInact;
Graphics::TBitmap *bmpClose;
Graphics::TBitmap *bmpMinimize;
Graphics::TBitmap *bmpZoom;
Graphics::TBitmap *bmp_Inact;
void __fastcall LoadBitmaps();
void __fastcall FreeBitmaps();
void __fastcall OnWMActive(TMessage &Msg);
BEGIN_MESSAGE_MAP
MESSAGE_HANDLER(WM_ACTIVATE,TMessage,OnWMActive)
END_MESSAGE_MAP(TForm);
// == 界面代码 结束 =====================================================
public: // User declarations
__fastcall TFormMain(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TFormMain *FormMain;
//---------------------------------------------------------------------------
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -