Skip to content

Commit 5cf7bfd

Browse files
author
msebolt
committed
adjustments
1 parent 3afa51c commit 5cf7bfd

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

docs/mfc/reference/cmenu-class.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ UINT EnableMenuItem(
496496
Specifies the menu item to be enabled, as determined by *`nEnable`*. This parameter can specify pop-up menu items as well as standard menu items.
497497

498498
*`nEnable`*<br/>
499-
Specifies the action to take. It can be a combination of `MF_DISABLED`, `MF_ENABLED`, or `MF_GRAYED`, with `MF_BYCOMMAND` or `MF_BYPOSITION`. These values can be combined by using the bitwise `OR` operator. These values have the following meanings:
499+
Specifies the action to take. It can be a combination of `MF_DISABLED`, `MF_ENABLED`, or `MF_GRAYED`, with `MF_BYCOMMAND` or `MF_BYPOSITION`. These values can be combined by using the C++ bitwise OR operator (`|`). These values have the following meanings:
500500

501501
- `MF_BYCOMMAND` Specifies that the parameter gives the command ID of the existing menu item. This is the default.
502502

@@ -718,7 +718,7 @@ Specifies the nature of *`nID`*. It can be one of the following values:
718718

719719
### Return Value
720720

721-
The value 0xFFFFFFFF if the specified item does not exist. If *`nId`* identifies a pop-up menu, the high-order byte contains the number of items in the pop-up menu and the low-order byte contains the menu flags associated with the pop-up menu. Otherwise the return value is a mask (Boolean OR) of the values from the following list (this mask describes the status of the menu item that *`nId`* identifies):
721+
The value `0xFFFFFFFF` if the specified item does not exist. If *`nId`* identifies a pop-up menu, the high-order byte contains the number of items in the pop-up menu and the low-order byte contains the menu flags associated with the pop-up menu. Otherwise the return value is a mask (Boolean OR) of the values from the following list (this mask describes the status of the menu item that *`nId`* identifies):
722722

723723
- `MF_CHECKED` Acts as a toggle with `MF_UNCHECKED` to place the default check mark next to the item. When the application supplies check-mark bitmaps (see the `SetMenuItemBitmaps` member function), the "check mark on" bitmap is displayed.
724724

docs/mfc/reference/cricheditctrl-class.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -963,13 +963,13 @@ Pointer to the buffer to receive the text in the current selection.
963963

964964
Depends on the form:
965965

966-
- **GetSelText(** `lpBuf` **)** The number of characters copied into *`lpBuf`*, not including the null termination.
966+
- **`GetSelText(lpBuf)`** The number of characters copied into *`lpBuf`*, not including the null termination.
967967

968-
- **GetSelText( )** The string containing the current selection.
968+
- **`GetSelText( )`** The string containing the current selection.
969969

970970
### Remarks
971971

972-
If you use the first form, **GetSelText(** `lpBuf` **)**, you must ensure that the buffer is large enough for the text it will receive. Call [`GetSel`](#getsel) to determine the number of characters in the current selection.
972+
If you use the first form, **`GetSelText(lpBuf)`**, you must ensure that the buffer is large enough for the text it will receive. Call [`GetSel`](#getsel) to determine the number of characters in the current selection.
973973

974974
For more information, see [`EM_GETSELTEXT`](/windows/win32/Controls/em-getseltext) in the Windows SDK.
975975

docs/mfc/reference/cstdiofile-class.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,12 +192,12 @@ A pointer to the buffer containing the text data. `NULL` if end-of-file was reac
192192

193193
### Remarks
194194

195-
Reading is stopped by the first newline character. If, in that case, fewer than *`nMax`*-1 characters have been read, a newline character is stored in the buffer. A null character ('\0') is appended in either case.
195+
Reading is stopped by the first newline character. If, in that case, fewer than *`nMax`*-1 characters have been read, a newline character is stored in the buffer. A null character (`\0`) is appended in either case.
196196

197197
[`CFile::Read`](../../mfc/reference/cfile-class.md#read) is also available for text-mode input, but it does not terminate on a carriage return-line feed pair.
198198

199199
> [!NOTE]
200-
> The `CString` version of this function removes the `'\n'` if present; the `LPTSTR` version does not.
200+
> The `CString` version of this function removes the `\n` if present; the `LPTSTR` version does not.
201201
202202
### Example
203203

docs/mfc/reference/cstring-formatting-and-message-box-display.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ A string that will replace the format characters "%1" in the template string.
9292
9393
### Remarks
9494
95-
The newly formed string is stored in *`rString`*. For example, if the string in the string table is "File %1 not found", and *`lpsz1`* is equal to "C:\MYFILE.TXT", then *`rString`* will contain the string "File C:\MYFILE.TXT not found". This function is useful for formatting strings sent to message boxes and other windows.
95+
The newly formed string is stored in *`rString`*. For example, if the string in the string table is `File %1 not found`, and *`lpsz1`* is equal to `C:\MYFILE.TXT`, then *`rString`* will contain the string `File C:\MYFILE.TXT not found`. This function is useful for formatting strings sent to message boxes and other windows.
9696
97-
If the format characters "%1" appear in the string more than once, multiple substitutions will be made.
97+
If the format characters `%1` appear in the string more than once, multiple substitutions will be made.
9898
9999
### Example
100100
@@ -125,16 +125,16 @@ A reference to the `CString` that will contain the resultant string after the su
125125
The string table ID of the template string on which the substitution will be performed.
126126

127127
*`lpsz1`*<br/>
128-
A string that will replace the format characters "%1" in the template string.
128+
A string that will replace the format characters `%1` in the template string.
129129

130130
*`lpsz2`*<br/>
131-
A string that will replace the format characters "%2" in the template string.
131+
A string that will replace the format characters `%2` in the template string.
132132

133133
### Remarks
134134

135-
The newly formed string is stored in *`rString`*. For example, if the string in the string table is "File %1 not found in directory %2", *`lpsz1`* points to "MYFILE.TXT", and *`lpsz2`* points to "C:\MYDIR", then *`rString`* will contain the string "File MYFILE.TXT not found in directory C:\MYDIR"
135+
The newly formed string is stored in *`rString`*. For example, if the string in the string table is `File %1 not found in directory %2`, *`lpsz1`* points to `MYFILE.TXT`, and *`lpsz2`* points to `C:\MYDIR`, then *`rString`* will contain the string `File MYFILE.TXT not found in directory C:\MYDIR`.
136136

137-
If the format characters "%1" or "%2" appear in the string more than once, multiple substitutions will be made. They do not have to be in numerical order.
137+
If the format characters `%1` or `%2` appear in the string more than once, multiple substitutions will be made. They do not have to be in numerical order.
138138

139139
### Example
140140

0 commit comments

Comments
 (0)