__VSSHOWCONTEXTMENUOPTS Enum

Definition

Specifies options for display of context menus.

C++/CX
public enum class __VSSHOWCONTEXTMENUOPTS
Inheritance
__VSSHOWCONTEXTMENUOPTS

Fields

Name Value Description
VSCTXMENU_SELECTFIRSTITEM 65536

Automatically select the first item.

VSCTXMENU_SHOWUNDERLINES 131072

Show keyboard mnemonic underlines.

VSCTXMENU_SUPPORTSTYPEAHEAD 262144

Supports typeahead, and should also be a sorted dynamic item list.

Remarks

These are additional options for the dwCompRole parameter for ShowContextMenu.

Combine these flags with the OLEROLE enumeration.

If the role is OLEROLE_UNKNOWN (-1), then these flags cannot be used and they are ignored.

COM Signature

From vsshell80.idl:

cpp#
enum __VSSHOWCONTEXTMENUOPTS  
{  
    VSCTXMENU_SELECTFIRSTITEM   = 0x00010000,  
    VSCTXMENU_SHOWUNDERLINES    = 0x00020000,  
    VSCTXMENU_SUPPORTSTYPEAHEAD = 0x00040000  
};  
typedef DWORD VSSHOWCONTEXTMENUOPTS;  

Applies to

Proizvod Verzije
Visual Studio SDK 2015, 2017, 2019, 2022