IInputObjectSite::OnFocusChangeIS method (shobjidl_core.h)
Informs the browser that the focus has changed.
HRESULT OnFocusChangeIS(
IUnknown *punkObj,
BOOL fSetFocus
);
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.
Type: HRESULT
Returns S_OK if the method was successful, or a COM-defined error code otherwise.
The calling object should call this method whenever one of its windows gains or loses the input focus.
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) |