IVsWindowFrame2.ActivateOwnerDockedWindow Method

Gives focus to a child IVsWindowFrame.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntax

'宣言
Function ActivateOwnerDockedWindow As Integer
'使用
Dim instance As IVsWindowFrame2
Dim returnValue As Integer

returnValue = instance.ActivateOwnerDockedWindow()
int ActivateOwnerDockedWindow()
int ActivateOwnerDockedWindow()
function ActivateOwnerDockedWindow() : int

Return Value

Type: System.Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

ActivateOwnerDockedWindow gives focus to a child IVsWindowFrame and ensures that its Selection is active. This method is only intended to be used by a parent container for an OwnerDocked window (see VSFPROPID_ParentFrame and VSFPROPID_ParentFrame) in order to forward focus in to the currently active child OwnerDocked window. For normal, top-level document and tool windows Show should be called to activate the window.

COM Signature

From vsshell80.idl:

HRESULT ActivateOwnerDockedWindow(void);

Permissions

See Also

Reference

IVsWindowFrame2 Interface

IVsWindowFrame2 Members

Microsoft.VisualStudio.Shell.Interop Namespace