ICAIcon

[ 
    object, 
    uuid(FC8584C6-15C4-4761-90F9-34917AC3DB87), 
    dual, 
    nonextensible, 
    helpstring("ICAIcon Interface"), 
    pointer_default(unique) 
] 
interface ICAIcon : IDispatch{ 
    [propget, id(1), helpstring("property ID")] HRESULT ID([out, retval] LONG* pVal); 
    [propget, id(2), helpstring("property Name")] HRESULT Name([out, retval] BSTR* pVal); 
    [propput, id(2), helpstring("property Name")] HRESULT Name([in] BSTR newVal); 
    [id(3), helpstring("method SaveToStream")] HRESULT SaveToStream([in] IStream* pStream); 
    [id(4), helpstring("method Reload")] HRESULT Reload(void); 
};
 
ProgID
CyberArticleBook.CAIcon
C/C++头文件
CyberArticleBook.h; CyberArticleBook_i.c
 

属性 ID

获得图标ID

参数

类型

  • get: [out, retval] LONG* pVal
  • put: 无

属性 Name

获得/设置图标名称

参数

类型

  • get: [out, retval] BSTR* pVal:获得图标名称
  • put: [in] BSTR newVal:设置图标名称

方法 SaveToStream

将图标数据保存到Stream里面。

参数

  • [in] IStream* pStream:Stream对象,用来接收图标数据。

返回

方法 Reload

重新从数据库中获得图标的数据

参数

返回