Condividi tramite


CMFCToolBar::IsCommandRarelyUsed

Determines whether a command is rarely used.

static BOOL IsCommandRarelyUsed(
   UINT uiCmd 
);

Parameters

  • [in] uiCmd
    Specifies the command to check.

Return Value

TRUE if the specified command is rarely used; otherwise FALSE.

Remarks

The IsCommandRarelyUsed method returns FALSE when one or more of the following conditions occur:

  • The specified command belongs to the list of basic commands

  • The specified command is one of the standard commands

  • The framework is in customization mode

  • The list of basic commands is empty

  • More than 20% of command calls are calls to the specified command.

Requirements

Header: afxtoolbar.h

See Also

Reference

CMFCToolBar Class

Hierarchy Chart