IOleInPlaceSiteWindowless.SetFocus(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the keyboard focus for a UI-active, windowless object.
public:
int SetFocus(int fFocus);
public:
int SetFocus(int fFocus);
int SetFocus(int fFocus);
public int SetFocus (int fFocus);
abstract member SetFocus : int -> int
Public Function SetFocus (fFocus As Integer) As Integer
Parameters
- fFocus
- Int32
[in] If TRUE, sets the keyboard focus to the calling object. If FALSE, removes the keyboard focus from the calling object, provided that the object has the focus.
Returns
S_OK Keyboard focus was successfully given to the object. If this method is called to release the focus, it should never fail. S_FALSE Keyboard focus was denied to the object.
Remarks
For information on the COM interface, see IOleInPlaceSiteWindowless::SetFocus