button1.cpp
来自「C++Builder程序员编程手记《配书光盘》」· C++ 代码 · 共 31 行
CPP
31 行
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "Button1.h"
#pragma package(smart_init)
//---------------------------------------------------------------------------
// ValidCtrCheck is used to assure that the components created do not have
// any pure virtual functions.
//
static inline void ValidCtrCheck(TButton1 *)
{
new TButton1(NULL);
}
//---------------------------------------------------------------------------
__fastcall TButton1::TButton1(TComponent* Owner)
: TButton(Owner)
{
}
//---------------------------------------------------------------------------
namespace Button1
{
void __fastcall PACKAGE Register()
{
TComponentClass classes[1] = {__classid(TButton1)};
RegisterComponents("Samples", classes, 0);
}
}
//---------------------------------------------------------------------------
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?