IOleInPlaceSiteWindowless::SetFocus Method (Int32)
Visual Studio 2015
Sets the keyboard focus for a UI-active, windowless object.
Assembly: Microsoft.VisualStudio.OLE.Interop (in Microsoft.VisualStudio.OLE.Interop.dll)
Parameters
- fFocus
-
Type:
System::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.
Return Value
Type: System::Int32S_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.
For information on the COM interface, see 1EA9BADE-5E41-49A0-A770-3A5CFC56D0F6
Show: