⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 linkimage.~cpp

📁 最简单的VCL控件BCB源码。扩展了TImage的功能
💻 ~CPP
字号:
//---------------------------------------------------------------------------

#include <vcl.h>

#pragma hdrstop

#include "LinkImage.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(TLinkImage *)
{
        new TLinkImage(NULL);
}
//---------------------------------------------------------------------------
__fastcall TLinkImage::TLinkImage(TComponent* Owner)
        : TImage(Owner)
{
}
//---------------------------------------------------------------------------
namespace Linkimage
{
        void __fastcall PACKAGE Register()
        {
                 TComponentClass classes[1] = {__classid(TLinkImage)};
                 RegisterComponents("Minking", classes, 0);
        }
}
//---------------------------------------------------------------------------
 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -