IOleInPlaceSiteWindowless.GetFocus Method
Called by an in-place active, windowless object to determine if it still has the keyboard focus or not.
Namespace: Microsoft.VisualStudio.OLE.Interop
Assembly: Microsoft.VisualStudio.OLE.Interop (in Microsoft.VisualStudio.OLE.Interop.dll)
Syntax
'Declaration
Function GetFocus As Integer
'Usage
Dim instance As IOleInPlaceSiteWindowless
Dim returnValue As Integer
returnValue = instance.GetFocus()
int GetFocus()
int GetFocus()
function GetFocus() : int
Return Value
Type: System.Int32
S_OK
The object currently has the keyboard focus.
S_FALSE
The object does not currently have the keyboard focus.
Remarks
For information on the COM interface, see IOleInPlaceSiteWindowless::GetFocus
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
IOleInPlaceSiteWindowless Interface