📄 mainform.cpp
字号:
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "MainForm.h"
#include "Pic2Form.h"
#include "Pic3Form.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm1::TaskbarSwitch(TObject *Sender)
{
int i=GetWindowLong(this->Handle,GWL_STYLE);
TForm2 *Pic2Form;
Pic2Form=new TForm2(NULL);
Pic2Form->ParentWindow=GetDesktopWindow();
Pic2Form->Caption="任务栏标题切换:图像二";
SetWindowLong(Pic2Form->Handle,GWL_STYLE,i);
Pic2Form->Show();
TForm3 *Pic3Form;
Pic3Form=new TForm3(NULL);
Pic3Form->ParentWindow=GetDesktopWindow();
Pic3Form->Caption="任务栏标题切换:图像三";
SetWindowLong(Pic3Form->Handle,GWL_STYLE,i);
Pic3Form->Show();
}
//---------------------------------------------------------------------------
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -