CWnd::accDoDefaultAction

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

virtual HRESULT accDoDefaultAction(
   VARIANT varChild
);

Параметры

  • 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).

Возвращаемое значение

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

Заметки

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.

Требования

Header: afxwin.h

См. также

Основные понятия

CWnd Class

CWnd Members

Hierarchy Chart

CWnd::EnableActiveAccessibility