IVsTextViewEvents::OnSetFocus Method (IVsTextView^)

 

Notifies a client when a view receives focus.

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

void OnSetFocus(
	IVsTextView^ pView
)

Parameters

pView
Type: Microsoft.VisualStudio.TextManager.Interop::IVsTextView^

[in] Pointer to the IVsTextView interface.

From textmgr.idl:

HRESULT IVsTextViewEvents::OnSetFocus(
   [in] IVsTextView *pView
);

The reference count is not incremented when you obtain a pointer to IVsTextView; if you want to keep it, call AddRef on it explicitly.

Return to top
Show: