C++ Builder的__published关键字

Category
Keyword extensions
Syntax
__published:
Description
The __published keyword was added to support the VCL.


class PASCALIMPLEMENTATION TListBox : public TCustomListBox
{
typedef TCustomListBox inherited;
__published:
__property Style = {default=0};
};
这个__published是一个什么权限啊,它与private public 有什么区别啊!
__property Style={default=0 };
这是什么意思啊!C 里面有这个定义吗?
__property Classes::TStrings* Items = {read=FItems, write=SetItems};
还有这个是什么意思啊!
后面的{read=FItems,write=SetItems}是什么意思啊!
__publish是public的
并且表示这个属性会在ObjectInspector中出现
这个是C Builder扩展的关键字
后面是这个属性的读写器
__publish是BCB自定义的关键字

博主友情提示:

如您在评论中需要提及如QQ号、电子邮件地址或其他隐私敏感信息,欢迎使用>>博主专用加密工具v3<<处理后发布,原文只有博主可以看到。