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/cmenu-class.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -496,7 +496,7 @@ UINT EnableMenuItem(
496
496
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.
497
497
498
498
*`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:
500
500
501
501
-`MF_BYCOMMAND` Specifies that the parameter gives the command ID of the existing menu item. This is the default.
502
502
@@ -718,7 +718,7 @@ Specifies the nature of *`nID`*. It can be one of the following values:
718
718
719
719
### Return Value
720
720
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):
722
722
723
723
-`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.
Copy file name to clipboardExpand all lines: docs/mfc/reference/cricheditctrl-class.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -963,13 +963,13 @@ Pointer to the buffer to receive the text in the current selection.
963
963
964
964
Depends on the form:
965
965
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.
967
967
968
-
-**GetSelText( )** The string containing the current selection.
968
+
-**`GetSelText( )`** The string containing the current selection.
969
969
970
970
### Remarks
971
971
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.
973
973
974
974
For more information, see [`EM_GETSELTEXT`](/windows/win32/Controls/em-getseltext) in the Windows SDK.
Copy file name to clipboardExpand all lines: docs/mfc/reference/cstdiofile-class.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -192,12 +192,12 @@ A pointer to the buffer containing the text data. `NULL` if end-of-file was reac
192
192
193
193
### Remarks
194
194
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.
196
196
197
197
[`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.
198
198
199
199
> [!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.
Copy file name to clipboardExpand all lines: docs/mfc/reference/cstring-formatting-and-message-box-display.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -92,9 +92,9 @@ A string that will replace the format characters "%1" in the template string.
92
92
93
93
### Remarks
94
94
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.
96
96
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.
98
98
99
99
### Example
100
100
@@ -125,16 +125,16 @@ A reference to the `CString` that will contain the resultant string after the su
125
125
The string table ID of the template string on which the substitution will be performed.
126
126
127
127
*`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.
129
129
130
130
*`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.
132
132
133
133
### Remarks
134
134
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`.
136
136
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.
0 commit comments