다음을 통해 공유


CWnd::accDoDefaultAction

Called by the framework to perform the object's default action.

virtual HRESULT accDoDefaultAction(
   VARIANT varChild
);

Parameters

  • varChild
    Specifies whether the default action to be invoked is that of the object or one of the object's child elements. This parameter can be either CHILDID_SELF (to perform the object's default action) or a child ID (to perform the default action of one of the object's child elements).

Return Value

Returns S_OK on success, a COM error code on failure. See Return Values in IAccessible::accDoDefaultAction in the Windows SDK.

Remarks

This function is part of MFC's Active Accessibility support.

Override this function in your CWnd-derived class to perform your object's default action. For more information, see IAccessible::accDoDefaultAction in the Windows SDK.

Requirements

Header: afxwin.h

See Also

Reference

CWnd Class

Hierarchy Chart

CWnd::EnableActiveAccessibility

Concepts

CWnd Members