Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

hasFocus method

Gets a value indicating whether the object currently has focus.

Syntax


HRESULT retVal = object.hasFocus(pfFocus);

Parameters

pfFocus [out, retval]

Type: VARIANT_BOOL

A pointer to a VARIANT_BOOL that receives one of the following values.

VARIANT_TRUE (true)

Document has focus.

VARIANT_FALSE (false)

Document does not have focus.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Standards information

There are no standards that apply here.

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.