ICommandUI::ID
Gets the ID of the user interface object represented by the ICommandUI object.
property unsigned int ID;
Remarks
This property gets the ID (a handle) of the menu item, toolbar button, or other user interface object represented by the ICommandUI object.
Requirements
Header: afxwinforms.h