IOleInPlaceSiteWindowless::GetFocus method (ocidl.h)
Called by an in-place active, windowless object to determine whether it still has the keyboard focus.
Syntax
HRESULT GetFocus();
Return value
This method returns S_OK on success. Other possible return values include the following.
Return code | Description |
---|---|
|
The object does not currently have the keyboard focus. |
Remarks
A windowless object calls this method to find out if it currently has the focus or not. As an alternative to calling this method, the object can cache information about whether it has the keyboard focus or not.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | ocidl.h |