共用方式為


IVsWindowFrameNotify Interface

Notifies a package of changes to one of its window frames. Superceded by IVsWindowFrameNotify3.

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

Syntax

'Declaration
<InterfaceTypeAttribute()> _
<GuidAttribute("FE46E1DF-E8A8-48D3-932E-B61BC092E681")> _
Public Interface IVsWindowFrameNotify
[InterfaceTypeAttribute()]
[GuidAttribute("FE46E1DF-E8A8-48D3-932E-B61BC092E681")]
public interface IVsWindowFrameNotify
[InterfaceTypeAttribute()]
[GuidAttribute(L"FE46E1DF-E8A8-48D3-932E-B61BC092E681")]
public interface class IVsWindowFrameNotify
[<InterfaceTypeAttribute()>]
[<GuidAttribute("FE46E1DF-E8A8-48D3-932E-B61BC092E681")>]
type IVsWindowFrameNotify =  interface end
public interface IVsWindowFrameNotify

The IVsWindowFrameNotify type exposes the following members.

Methods

  Name Description
Public method OnDockableChange Notifies the VSPackage that a window's docked state is being altered.
Public method OnMove Notifies the VSPackage that a window is being moved.
Public method OnShow Notifies the VSPackage of a change in the window's display state.
Public method OnSize Notifies the VSPackage that a window is being resized.

Top

Remarks

A package that needs to optimize or have extensive control over windows sited in window frames implements this interface. One reason might be to control the number of window handles.

Implement the interface on the object passed to the window frame with the property VSFPROPID_ViewHelper from the __VSFPROPID enumeration

For examples of using the interface, see code for the sample Solution Extender.

Notes to Implementers

Implemented on a window sited in a window frame.

Notes to Callers

Called by the environment to notify a package of window manipulation by the user.

See Also

Reference

Microsoft.VisualStudio.Shell.Interop Namespace