Gets a value indicating whether the object currently has focus.
HRESULT hasFocus( VARIANT_BOOL *pfFocus );
- [out, retval] A pointer to a VARIANT_BOOL that receives one of the following values.
- Document has focus.
- Document does not have focus.
Returns S_OK if successful, or an error value otherwise.