You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/mfc/reference/cmfccmdusagecount-class.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,7 +79,7 @@ void AddCmd(UINT uiCmd);
79
79
|||
80
80
|-|-|
81
81
|Parameter|Description|
82
-
|[in]`uiCmd`|Specifies the command counter to increment.|
82
+
|[in]*uiCmd*|Specifies the command counter to increment.|
83
83
84
84
### Remarks
85
85
This method adds a new entry to the map structure of command counts, `m_CmdUsage`, if the entry does not already exist.
@@ -88,9 +88,9 @@ void AddCmd(UINT uiCmd);
88
88
89
89
- The toolbar framework is in customization mode (the [CMFCToolBar::IsCustomizeMode](../../mfc/reference/cmfctoolbar-class.md#iscustomizemode) method returns a nonzero value).
90
90
91
-
- The command refers to a submenu or menu separator ( `uiCmd` equals 0 or -1).
91
+
- The command refers to a submenu or menu separator ( *uiCmd* equals 0 or -1).
92
92
93
-
-`uiCmd` refers to a standard command (the global `IsStandardCommand` function returns a nonzero value).
93
+
-*uiCmd* refers to a standard command (the global `IsStandardCommand` function returns a nonzero value).
|[in]`ar`|A `CArchive` object to serialize from or to.|
171
+
|[in]*ar*|A `CArchive` object to serialize from or to.|
172
172
173
173
### Remarks
174
174
This method serializes the map structure of command counts, `m_CmdUsage`, and the total command usage, `m_nTotalUsage`, counter from or to the specified archive.
|[in]`nStartCount`|The new initial count of all tracked commands.|
193
-
|[in]`nMinUsagePercentage`|The new minimum usage percentage.|
192
+
|[in]*nStartCount*|The new initial count of all tracked commands.|
193
+
|[in]*nMinUsagePercentage*|The new minimum usage percentage.|
194
194
195
195
### Return Value
196
-
`TRUE` if the method succeeds, `FALSE` if the `nMinUsagePercentage` parameter is larger than or equal to 100.
196
+
`TRUE` if the method succeeds, `FALSE` if the *nMinUsagePercentage* parameter is larger than or equal to 100.
197
197
198
198
### Remarks
199
-
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](#hasenoughinformation) method to determine whether this object has collected the minimum amount of tracking data. `m_nMinUsagePercentage` is used by the [CMFCCmdUsageCount::IsFreqeuntlyUsedCmd](#isfreqeuntlyusedcmd) method to determine whether a given command is frequently used.
199
+
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](#hasenoughinformation) method to determine whether this object has collected the minimum amount of tracking data. `m_nMinUsagePercentage` is used by the [CMFCCmdUsageCount::IsFreqeuntlyUsedCmd](#isfreqeuntlyusedcmd) method to determine whether a given command is frequently used.
200
200
201
201
In Debug builds this method generates an assertion failure if the `nMinUsagePercentage` parameter is larger than or equal to 100.
0 commit comments