This documentation is archived and is not being maintained.

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

Returns S_OK on success, a COM error code on failure. See Return Values in IAccessible::accDoDefaultAction in the Platform 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 Platform SDK.

Show: