Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets the values of shared CMFCCmdUsageCount class data members.
static BOOL __stdcall SetOptions(
UINT nStartCount,
UINT nMinUsagePercentage
);
Parameters
Parameter |
Description |
[in] nStartCount |
The new initial count of all tracked commands. |
[in] nMinUsagePercentage |
The new minimum usage percentage. |
Return Value
TRUE if the method succeeds, FALSE if the nMinUsagePercentage parameter is larger than or equal to 100.
Remarks
This method sets the shared CMFCCmdUsageCount class data members m_nStartCount and m_nMinUsagePercentage to nStartCount and nMinUsagePercentage, respectively. m_nStartCount is used by the CMFCCmdUsageCount::HasEnoughInformation method to determine whether this object has collected the minimum amount of tracking data. m_nMinUsagePercentage is used by the CMFCCmdUsageCount::IsFreqeuntlyUsedCmd method to determine whether a given command is frequently used.
In Debug builds this method generates an assertion failure if the nMinUsagePercentage parameter is larger than or equal to 100.
Requirements
Header: afxcmdusagecount.h