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
int GetFocus()
int GetFocus()
abstract GetFocus : unit -> int
function GetFocus() : int

Return Value

Type: 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

See Also

Reference

IOleInPlaceSiteWindowless Interface

Microsoft.VisualStudio.OLE.Interop Namespace