Compartilhar via


CMFCCmdUsageCount::AddCmd

Increments by one the counter that is associated with the given command.

void AddCmd(
   UINT uiCmd
);

Parameters

Parameter

Description

[in] uiCmd

Specifies the command counter to increment.

Remarks

This method adds a new entry to the map structure of command counts, m_CmdUsage, if the entry does not already exist.

This method does nothing in the following cases:

  • The toolbar framework is in customization mode (the CMFCToolBar::IsCustomizeMode method returns a nonzero value).

  • The command refers to a submenu or menu separator (uiCmd equals 0 or -1).

  • uiCmd refers to a standard command (the global IsStandardCommand function returns a nonzero value).

Requirements

Header: afxcmdusagecount.h

See Also

Reference

CMFCCmdUsageCount Class

Hierarchy Chart

CMFCToolBar::IsCustomizeMode