Megosztás a következőn keresztül:


CToolBarCtrl::CommandToIndex

Retrieves the zero-based index for the button associated with the specified command identifier.

UINT CommandToIndex( 
   UINT nID  
) const;

Parameters

  • nID
    Command ID whose button index you want to find.

Return Value

The zero-based index for the button associated with the command ID.

Remarks

CToolBarCtrl Overview | Class Members | Hierarchy Chart | CToolBarCtrl::SetCmdID | CToolBarCtrl::GetButton | CToolBarCtrl::AddButtons | CToolBarCtrl::InsertButton

Requirements

Header: afxcmn.h

See Also

Other Resources

CToolBarCtrl Member Functions