Partilhar via


VSConstants.VsUIHierarchyWindowCmdIds Enum

Definition

The following commands are special commands that only apply to the UIHierarchyWindow. They are defined as part of the command group GUID: CMDSETID.UIHierarchyWindowCommandSet_guid.

public: enum class VSConstants::VsUIHierarchyWindowCmdIds
enum VSConstants::VsUIHierarchyWindowCmdIds
[System.Runtime.InteropServices.Guid("60481700-078b-11d1-aaf8-00a0c9055a90")]
public enum VSConstants.VsUIHierarchyWindowCmdIds
[<System.Runtime.InteropServices.Guid("60481700-078b-11d1-aaf8-00a0c9055a90")>]
type VSConstants.VsUIHierarchyWindowCmdIds = 
Public Enum VSConstants.VsUIHierarchyWindowCmdIds
Inheritance
VSConstants.VsUIHierarchyWindowCmdIds
Attributes

Fields

Name Value Description
UIHWCMDID_RightClick 1
UIHWCMDID_DoubleClick 2
UIHWCMDID_EnterKey 3
UIHWCMDID_StartLabelEdit 4
UIHWCMDID_CommitLabelEdit 5
UIHWCMDID_CancelLabelEdit 6

Remarks

The UIHWCMDID_RightClick command is what tells the interface IVsUIHierarchy in a IVsUIHierarchyWindow to display the context menu. Since the mouse position may change between the mouse down and the mouse up events and the right click command might even originate from the keyboard Visual Studio provides the proper menu position into pvaIn by performing a memory copy operation on a POINTS structure into the VT_UI4 part of the pvaIn variant.

To show the menu use the derived POINTS as the coordinates to show the context menu, calling ShowContextMenu. To ensure proper command handling you should pass a NULL command target into ShowContextMenu menu so that the IVsUIHierarchyWindow will have the first chance to handle commands like delete.

The events UIHWCMDID_StartLabelEdit, UIHWCMDID_CommitLabelEdit, and UIHWCMDID_CancelLabelEdit are for notification only. Changing the text of the node will be handled through SetProperty with the property set to VSHPROPID_EditLabel.

Applies to