共用方式為


ICommandUI::Index

Gets the index of the user interface object represented by the ICommandUI object.

property unsigned int Index;

Remarks

This property gets the index (a handle) of the menu item, toolbar button, or other user interface object represented by the ICommandUI object.

Requirements

Header: afxwinforms.h

See Also

Reference

ICommandUI Interface

Other Resources

ICommandUI Members