Partager via


CStatusBar::CommandToIndex

Gets the indicator index for a given ID.

int CommandToIndex(
   UINT nIDFind 
) const;

Parameters

  • nIDFind
    String ID of the indicator whose index is to be retrieved.

Return Value

The index of the indicator if successful; –1 if not successful.

Remarks

The index of the first indicator is 0.

Requirements

Header: afxext.h

See Also

Reference

CStatusBar Class

Hierarchy Chart

CStatusBar::GetItemID

Other Resources

CStatusBar Members