您现在的位置:首页 >> API >> API >> 内容

IDocHostUIHandler和ICustomDoc接口

时间:2011/9/3 15:44:24 点击:

  核心提示:IDocHostUIHandler = interface(IUnknown)['{bd3f23c0-d43e-11cf-893b-00aa00bdce1a}'] function ShowConte...
IDocHostUIHandler = interface(IUnknown)
['{bd3f23c0-d43e-11cf-893b-00aa00bdce1a}']
  function ShowContextMenu(const dwID: DWORD; const ppt: PPOINT;const pcmdtReserved: IUnknown; const pdispReserved: IDispatch): HRESULT; stdcall;
  function GetHostInfo(var pInfo: TDOCHOSTUIINFO): HRESULT; stdcall;

  function ShowUI(const dwID: DWORD; const pActiveObject: IOleInPlaceActiveObject;
    const pCommandTarget: IOleCommandTarget; const pFrame: IOleInPlaceFrame;
    const pDoc: IOleInPlaceUIWindow): HRESULT; stdcall;
  function HideUI: HRESULT; stdcall;
  function UpdateUI: HRESULT; stdcall;
  function EnableModeless(const fEnable: BOOL): HRESULT; stdcall;
  function OnDocWindowActivate(const fActivate: BOOL): HRESULT; stdcall;
  function OnFrameWindowActivate(const fActivate: BOOL): HRESULT; stdcall;
  function ResizeBorder(const prcBorder: PRECT;const pUIWindow: IOleInPlaceUIWindow;const fRameWindow: BOOL): HRESULT; stdcall;
  function TranslateAccelerator(const lpMsg: PMSG; const pguidCmdGroup: PGUID;
const nCmdID: DWORD): HRESULT; stdcall;
  function GetOptionKeyPath(var pchKey: POLESTR; const dw: DWORD): HRESULT; stdcall;
  function GetDropTarget(const pDropTarget: IDropTarget;out ppDropTarget: IDropTarget): HRESULT; stdcall;
  function GetExternal(out ppDispatch: IDispatch): HRESULT; stdcall;
  function TranslateUrl(const dwTranslate: DWORD; const pchURLIn: POLESTR;var ppchURLOut: POLESTR): HRESULT; stdcall;
  function FilterDataObject(const pDO: IDataObject;out ppDORet: IDataObject): HRESULT; stdcall;
end; // IDocHostUIHandler

ICustomDoc = interface(IUnknown)
['{3050f3f0-98b5-11cf-bb82-00aa00bdce0b}']
  function SetUIHandler (const pUIHandler : IDocHostUIHandler) : HRESULT; stdcall;
end;

Tags:接口 
作者:网络 来源:转载
共有评论 0相关评论
发表我的评论
  • 大名:
  • 内容:
本类推荐
  • 没有
本类固顶
  • 没有
  • 盒子文章(www.2ccc.com) © 2024 版权所有 All Rights Reserved.
  • 沪ICP备05001939号