Skip to content

Commit cfabc28

Browse files
author
mtx48109
committed
format mfc reference pr8
1 parent 6a1a57e commit cfabc28

30 files changed

+573
-573
lines changed

docs/mfc/reference/cmfccmdusagecount-class.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ void AddCmd(UINT uiCmd);
7979
|||
8080
|-|-|
8181
|Parameter|Description|
82-
|[in] `uiCmd`|Specifies the command counter to increment.|
82+
|[in] *uiCmd*|Specifies the command counter to increment.|
8383

8484
### Remarks
8585
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);
8888

8989
- The toolbar framework is in customization mode (the [CMFCToolBar::IsCustomizeMode](../../mfc/reference/cmfctoolbar-class.md#iscustomizemode) method returns a nonzero value).
9090

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).
9292

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).
9494

9595
## <a name="getcount"></a> CMFCCmdUsageCount::GetCount
9696
Retrieves the usage count that is associated with the given command ID.
@@ -104,7 +104,7 @@ UINT GetCount(UINT uiCmd) const;
104104
|||
105105
|-|-|
106106
|Parameter|Description|
107-
|[in] `uiCmd`|The ID of the command counter to retrieve.|
107+
|[in] *uiCmd*|The ID of the command counter to retrieve.|
108108

109109
### Return Value
110110
The usage count that is associated with the given command ID.
@@ -136,7 +136,7 @@ BOOL IsFreqeuntlyUsedCmd(UINT uiCmd) const;
136136
|||
137137
|-|-|
138138
|Parameter|Description|
139-
|[in] `uiCmd`|Specifies the command to check.|
139+
|[in] *uiCmd*|Specifies the command to check.|
140140

141141
### Return Value
142142
Nonzero if the command is frequently used; otherwise 0.
@@ -168,7 +168,7 @@ virtual void Serialize(CArchive& ar);
168168
|||
169169
|-|-|
170170
|Parameter|Description|
171-
|[in] `ar`|A `CArchive` object to serialize from or to.|
171+
|[in] *ar*|A `CArchive` object to serialize from or to.|
172172

173173
### Remarks
174174
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.
@@ -189,14 +189,14 @@ static BOOL __stdcall SetOptions(
189189
|||
190190
|-|-|
191191
|Parameter|Description|
192-
|[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.|
194194

195195
### 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.
197197

198198
### 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.
200200

201201
In Debug builds this method generates an assertion failure if the `nMinUsagePercentage` parameter is larger than or equal to 100.
202202

0 commit comments

Comments
 (0)