Partager via


IVsRunningDocTableEvents3.OnBeforeDocumentWindowShow Method

Called before displaying a document window.

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

Syntax

'Declaration
Function OnBeforeDocumentWindowShow ( _
    docCookie As UInteger, _
    fFirstShow As Integer, _
    pFrame As IVsWindowFrame _
) As Integer
int OnBeforeDocumentWindowShow(
    uint docCookie,
    int fFirstShow,
    IVsWindowFrame pFrame
)
int OnBeforeDocumentWindowShow(
    [InAttribute] unsigned int docCookie, 
    [InAttribute] int fFirstShow, 
    [InAttribute] IVsWindowFrame^ pFrame
)
abstract OnBeforeDocumentWindowShow : 
        docCookie:uint32 * 
        fFirstShow:int * 
        pFrame:IVsWindowFrame -> int
function OnBeforeDocumentWindowShow(
    docCookie : uint, 
    fFirstShow : int, 
    pFrame : IVsWindowFrame
) : int

Parameters

  • docCookie
    Type: UInt32

    [in] Abstract value representing the document whose attributes have been changed.

  • fFirstShow
    Type: Int32

    [in] Non-zero (TRUE) if the doc window is being displayed for the first time.

Return Value

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsRunningDocTableEvents3::OnBeforeDocumentWindowShow(
   [in] VSCOOKIE docCookie,
   [in] BOOL fFirstShow,
   [in] IVsWindowFrame *pFrame
);

.NET Framework Security

See Also

Reference

IVsRunningDocTableEvents3 Interface

Microsoft.VisualStudio.Shell.Interop Namespace