CMFCCmdUsageCount::SetOptions
一组共享 CMFCCmdUsageCount 选件类数据成员的值。
static BOOL __stdcall SetOptions(
UINT nStartCount,
UINT nMinUsagePercentage
);
参数
Parameter |
说明 |
[in] nStartCount |
新的初始显示所有跟踪的命令。 |
[in] nMinUsagePercentage |
新的最小使用百分比。 |
返回值
TRUE,如果方法成功,FALSE,如果 nMinUsagePercentage 参数大于或等于100。
备注
此方法将共享 CMFCCmdUsageCount 选件类数据成员 m_nStartCount 和 m_nMinUsagePercentage 到 nStartCount 和 nMinUsagePercentage,分别。 CMFCCmdUsageCount::HasEnoughInformation 方法用于m_nStartCount 确定此对象是否收集最小量跟踪数据。 CMFCCmdUsageCount::IsFreqeuntlyUsedCmd 方法用于m_nMinUsagePercentage 确定是否常用特定命令。
在调试此方法生成断言失败的生成,如果 nMinUsagePercentage 参数大于或等于100。
要求
标头: afxcmdusagecount.h