Επεξεργασία

Κοινή χρήση μέσω


IInputObjectSite::OnFocusChangeIS method (shobjidl_core.h)

Informs the browser that the focus has changed.

Syntax

HRESULT OnFocusChangeIS(
  IUnknown *punkObj,
  BOOL     fSetFocus
);

Parameters

punkObj

Type: IUnknown*

The address of the IUnknown interface of the object gaining or losing the focus.

fSetFocus

Type: BOOL

Indicates if the object has gained or lost the focus. If this value is nonzero, the object has gained the focus. If this value is zero, the object has lost the focus.

Return value

Type: HRESULT

Returns S_OK if the method was successful, or a COM-defined error code otherwise.

Remarks

The calling object should call this method whenever one of its windows gains or loses the input focus.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional, Windows XP [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header shobjidl_core.h (include Shlobj.h)
DLL Shell32.dll (version 4.71 or later)