[This is preliminary documentation and subject to change.]
Retrieves the child object that currently has the keyboard focus.
HRESULT get_accFocus(
VARIANT *pvarChild
);
Returns S_OK if successful or a standard COM error code otherwise.
Only one object or item within a container can have the focus at any one time. The object with the keyboard focus is not necessarily the selected object.
Note to implementers If the object itself has the keyboard focus, return zero as a VT_I4 type. If a child is an accessible object and has the focus, return the address of its IDispatch interface (a VT_DISPATCH type). Or, if a child has the focus but isn't an accessible object, return the child ID to the child as a VT_I4 type.
Accessible Object Selection, Focus, IDispatch Interface