WizKnowledge 的ActiveX控件:IWizDocumentListCtrl
object,
uuid(C128ECE0-A006-4E57-8054-4CBC49818231),
dual,
nonextensible,
helpstring("IWizDocumentListCtrl Interface"),
pointer_default(unique)
]
interface IWizDocumentListCtrl : IDispatch{
//获得/设置数据库对象
[propget, id(1), helpstring("property Database")] HRESULT Database([out, retval] IDispatch** pVal);
[propput, id(1), helpstring("property Database")] HRESULT Database([in] IDispatch* newVal);
//获得/设置用户选中的文档列表,类型为IWizDocumentCollection
[propget, id(2), helpstring("property SelectedDocuments")] HRESULT SelectedDocuments([out, retval] IDispatch** pVal);
[propput, id(2), helpstring("property SelectedDocuments")] HRESULT SelectedDocuments([in] IDispatch* newVal);
//获得/设置状态section
[propget, id(3), helpstring("property StateSection")] HRESULT StateSection([out, retval] BSTR* pVal);
[propput, id(3), helpstring("property StateSection")] HRESULT StateSection([in] BSTR newVal);
//获得/设置是否显示边框
[propget, id(4), helpstring("property Border")] HRESULT Border([out, retval] VARIANT_BOOL* pVal);
[propput, id(4), helpstring("property Border")] HRESULT Border([in] VARIANT_BOOL newVal);
//获得/设置是否禁止右键菜单
[propget, id(5), helpstring("property DisableContextMenu")] HRESULT DisableContextMenu([out, retval] VARIANT_BOOL* pVal);
[propput, id(5), helpstring("property DisableContextMenu")] HRESULT DisableContextMenu([in] VARIANT_BOOL newVal);
//获得用户输入的搜索关键字
[propget, id(6), helpstring("property SearchKeywords")] HRESULT SearchKeywords([out, retval] BSTR* pVal);
//获得/设置是否显示阴影
[propget, id(7), helpstring("property Shadow")] HRESULT Shadow([out, retval] VARIANT_BOOL* pVal);
[propput, id(7), helpstring("property Shadow")] HRESULT Shadow([in] VARIANT_BOOL newVal);
//获得/设置排序依据,例如Title,URL等等
[propget, id(8), helpstring("property SortBy")] HRESULT SortBy([out, retval] BSTR* pVal);
[propput, id(8), helpstring("property SortBy")] HRESULT SortBy([in] BSTR newVal);
//获得/设置排序顺序,从大到小还是从小到大
[propget, id(9), helpstring("property SortOrder")] HRESULT SortOrder([out, retval] BSTR* pVal);
[propput, id(9), helpstring("property SortOrder")] HRESULT SortOrder([in] BSTR newVal);
//获得文档列表所属的父文件夹,如果是搜索列表,则为空。类型为IWizFolder
[propget, id(10), helpstring("property ParentFolder")] HRESULT ParentFolder([out, retval] IDispatch** pVal);
//设置文档列表,pDisp:IWizDocumentCollection
[id(11), helpstring("method SetDocuments")] HRESULT SetDocuments([in] IDispatch* pDisp);
//设置文档列表。pDisp:IWizDocumentCollection对象;bstrSortBy:排序依据;bstrSortOrder:排序方式
[id(12), helpstring("method SetDocuments2")] HRESULT SetDocuments2([in] IDispatch* pDisp, [in] BSTR bstrSortBy, [in] BSTR bstrSortOrder);
//刷新
[id(13), helpstring("method Refresh")] HRESULT Refresh();
//获得所有文档
[id(14), helpstring("method GetDocuments")] HRESULT GetDocuments([out, retval] IDispatch** pVal);
//获得/设置用户选中的文档更改的事件,提供给html+JavaScript使用这个事件
[propget, id(15), helpstring("property OnSelChanged")] HRESULT OnSelChanged([out, retval] VARIANT* pVal);
[propput, id(15), helpstring("property OnSelChanged")] HRESULT OnSelChanged([in] VARIANT newVal);
//获得/设置用户双击一个文档的事件,提供给html+JavaScript使用这个事件
[propget, id(16), helpstring("property OnDblClickItem")] HRESULT OnDblClickItem([out, retval] VARIANT* pVal);
[propput, id(16), helpstring("property OnDblClickItem")] HRESULT OnDblClickItem([in] VARIANT newVal);
//获得/设置用户选中一个右键菜单的事件,提供给html+JavaScript使用这个事件
[propget, id(17), helpstring("property OnExecCommand")] HRESULT OnExecCommand([out, retval] VARIANT* pVal);
[propput, id(17), helpstring("property OnExecCommand")] HRESULT OnExecCommand([in] VARIANT newVal);
};
uuid(6F374E41-29D7-426A-8F9D-995E3DA812CA),
helpstring("_IWizDocumentListCtrlEvents Interface")
]
dispinterface _IWizDocumentListCtrlEvents
{
properties:
methods:
//用户更改了选中的文档
[id(1), helpstring("method SelChanged")] HRESULT SelChanged(void);
//用户双击了某一个文档
[id(2), helpstring("method DblClickItem")] HRESULT DblClickItem([in] IDispatch* pDocumentDisp);
//用户选择了某一个菜单命令
[id(11), helpstring("method ExecCommand")] HRESULT ExecCommand([in] BSTR bstrCommandName, [in] IDispatch* pDocumentDisp);
};
最近评论