📄 feng.cpp
字号:
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "feng.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TSplashForm *SplashForm;
Graphics::TBitmap *bmp;
//---------------------------------------------------------------------------
__fastcall TSplashForm::TSplashForm(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TSplashForm::FormCreate(TObject *Sender)
{
bmp=new Graphics::TBitmap();
AnsiString strname=ExtractFileDir(Application->ExeName);
bmp->LoadFromFile(strname+"\\splash.bmp");
}
//---------------------------------------------------------------------------
void __fastcall TSplashForm::FormClose(TObject *Sender,
TCloseAction &Action)
{
delete bmp;
}
//---------------------------------------------------------------------------
void __fastcall TSplashForm::FormPaint(TObject *Sender)
{
Image1->Canvas->Draw(0,0,bmp);
}
//---------------------------------------------------------------------------
void __fastcall TSplashForm::FormShow(TObject *Sender)
{
Image1->Canvas->Draw(0,0,bmp);
}
//---------------------------------------------------------------------------
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -