Navigation:  Internet Development > Advanced Hosting Reference > Interfaces > ICustomDoc >

SetUIHandler

Previous pageReturn to chapter overviewNext page

描述

 

为MSHTML设置IDocHostUIHandler界面。

 

C++ 语法

 

HRESULT SetUIHandler(

  IDocHostUIHandler *pUIHandler

);

 

PowerBASIC 语法

 

METHOD SetUIHandler ( _

  BYVAL pUIHandler AS IDocHostUIHandler _

) AS LONG

 

参数

 

pUIHandler

[in]指向主机的IDocHostUIHandler界面的指针。

 

OBJRESULT

 

如果成功返回S_OK,否则返回错误值。

 

备注

 

MSHTML将发布其以前的IDocHostUIHandler接口(如果存在),并调用pUIHandler'AddRef方法。