constants CloseOnEnum
The CloseOnEnum type specifies how an item that contains an ActiveX inside is close. The CloseOn property indicates how the user closes the context menu when an inside ActiveX control is clicked. The CloseOnEnum type supports the following values:

NameValueDescription
exUser0 The user is responsible for closing the popup menu.
exLButtonDown513 The popup menu is closed when user presses the left mouse button over the ActiveX control.
exLButtonUp514 The popup menu is closed when user releases the left mouse button over the ActiveX control.
exLButtonDblClk515 The popup menu is closed when user double click the ActiveX control.
exRButtonDown516 The popup menu is closed when user right clicks the ActiveX control.
exRButtonUp517 The popup menu is closed when user releases the right mouse button over the ActiveX control.
exRButtonDblClk518 The popup menu is closed when user double click the right mouse button in the ActiveX control.
exMButtonDown519 The popup menu is closed when user clicks the middle mouse button in the ActiveX control.
exMButtonUp520 The popup menu is closed when user releases the middle mouse button in the ActiveX control.
exMButtonDblClk521 The popup menu is closed when user double clicks the middle mouse button in the ActiveX control.
exClick61441 The popup menu is closed when user presses any of the mouse buttons in the ActiveX control.
exDblClick61442 The popup menu is closed when user double clicks any of the mouse buttons in the ActiveX control.