Udostępnij za pośrednictwem


IVsToolboxActiveUserHook.ToolboxSelectionChanged(IDataObject) Method

Definition

This method is called by the Toolbox whenever there is a change in which Toolbox item has been selected.

public:
 int ToolboxSelectionChanged(Microsoft::VisualStudio::OLE::Interop::IDataObject ^ pSelected);
public:
 int ToolboxSelectionChanged(Microsoft::VisualStudio::OLE::Interop::IDataObject ^ pSelected);
int ToolboxSelectionChanged(Microsoft::VisualStudio::OLE::Interop::IDataObject const & pSelected);
public int ToolboxSelectionChanged (Microsoft.VisualStudio.OLE.Interop.IDataObject pSelected);
abstract member ToolboxSelectionChanged : Microsoft.VisualStudio.OLE.Interop.IDataObject -> int
Public Function ToolboxSelectionChanged (pSelected As IDataObject) As Integer

Parameters

pSelected
IDataObject

[in] An IDataObject containing the currently selected Toolbox item.

Returns

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

Remarks

COM Signature

From vsshell80.idl:

[C++]  
HRESULT IVsToolboxActiveUserHook::ToolboxSelectionChanged(  
   [in] IDataObject *pSelected  
);  

IVsToolboxActiveUserHook is used by an application that requires notification of changes to a Toolbox selection. It should only be called by the Toolbox itself, as only the active Toolbox user can receive IVsToolboxActiveUserHook notifications. It should not be called directly by a VSPackage.

Applies to