次の方法で共有


IVsRunningDocTableEvents2.OnBeforeDocumentWindowShow Method

Definition

Called before displaying a document window.

public:
 int OnBeforeDocumentWindowShow(System::UInt32 docCookie, int fFirstShow, Microsoft::VisualStudio::Shell::Interop::IVsWindowFrame ^ pFrame);
public:
 int OnBeforeDocumentWindowShow(unsigned int docCookie, int fFirstShow, Microsoft::VisualStudio::Shell::Interop::IVsWindowFrame ^ pFrame);
int OnBeforeDocumentWindowShow(unsigned int docCookie, int fFirstShow, Microsoft::VisualStudio::Shell::Interop::IVsWindowFrame const & pFrame);
public int OnBeforeDocumentWindowShow (uint docCookie, int fFirstShow, Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame pFrame);
abstract member OnBeforeDocumentWindowShow : uint32 * int * Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame -> int
Public Function OnBeforeDocumentWindowShow (docCookie As UInteger, fFirstShow As Integer, pFrame As IVsWindowFrame) As Integer

Parameters

docCookie
UInt32

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

fFirstShow
Int32

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

pFrame
IVsWindowFrame

[in] The IVsWindowFrame interface object representing the frame that contains the document's window.

Returns

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

Implements

Remarks

This method is called just before the document's window is shown.

COM Signature

From vsshell.idl:

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

Applies to