CWnd::get_accParent

调用由框架检索对象的父级的 IDispatch 接口。

virtual HRESULT get_accParent( 
   IDispatch **ppdispParent 
);

参数

  • ppdispParent
    接收父对象的 IDispatch 接口的地址。 变量设置为NULL,如果父不存在,或者,如果子项无法访问其父级。

返回值

返回在成功的S_OK,在失败的COM错误代码。 在参见 IAccessible::get_accParent返回值 在 Windows SDK。

备注

此功能是MFC的 Active Accessibility 的一部分支持。

在许多情况下您不必重写此功能。

有关更多信息,请参见 Windows SDK的 IAccessible::get_accParent

要求

Header: afxwin.h

请参见

参考

CWnd 类

层次结构图

CWnd::get_accChild