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/add-class-from-typelib-wizard.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
@@ -42,12 +42,12 @@ Use this wizard to add an MFC class from an available type library. The wizard c
42
42
|**<\<**|Removes all the classes in the **Generated classes** list. Dimmed if the **Generated classes** list is empty.|
43
43
44
44
**Generated classes**
45
-
Specifies the class names to be generated from the interfaces added using the **>** or **>>** button. You can click this box to select a class, and then use the up or down keys to scroll through the list, viewing each class name in the `Class` box and file name in the **File** box that the wizard generates when you click **Finish**. You can select only one class at a time in this box.
45
+
Specifies the class names to be generated from the interfaces added using the **>** or **>>** button. You can click this box to select a class, and then use the up or down keys to scroll through the list, viewing each class name in the **Class** box and file name in the **File** box that the wizard generates when you click **Finish**. You can select only one class at a time in this box.
46
46
47
47
You can remove a class by selecting it in this list and clicking **<**. You do not need to select a class in the Generated classes box to remove all classes; by clicking **<<**, you remove all classes in the **Generated classes** box.
48
48
49
-
`Class`
50
-
Specifies the name of the class selected in the **Generated classes** box that the wizard adds when you click **Finish**. You can edit the name in the `Class` box.
49
+
**Class**
50
+
Specifies the name of the class selected in the **Generated classes** box that the wizard adds when you click **Finish**. You can edit the name in the **Class** box.
51
51
52
52
**File**
53
53
Sets the name of the header file for the new class. By default, this name is based on the name you provide in **Generated classes**. Click the ellipsis button to save the file name to the location of your choice, or to append the class declaration to an existing file. If you choose an existing file, the wizard will not save it to the selected location until you click **Finish** in the wizard.
Copy file name to clipboardExpand all lines: docs/mfc/reference/afx-extension-module-structure.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
@@ -32,7 +32,7 @@ struct AFX_EXTENSION_MODULE
32
32
*bInitialized*
33
33
**TRUE** if the DLL module has been initialized with `AfxInitExtensionModule`.
34
34
35
-
`hModule`
35
+
*hModule*
36
36
Specifies the handle of the DLL module.
37
37
38
38
*hResource*
@@ -49,13 +49,13 @@ struct AFX_EXTENSION_MODULE
49
49
50
50
- Call [AfxInitExtensionModule](extension-dll-macros.md#afxinitextensionmodule) and check the return value.
51
51
52
-
- Create a **CDynLinkLibrary** object if the DLL will be exporting [CRuntimeClass](../../mfc/reference/cruntimeclass-structure.md) objects or has its own custom resources.
52
+
- Create a `CDynLinkLibrary` object if the DLL will be exporting [CRuntimeClass](../../mfc/reference/cruntimeclass-structure.md) objects or has its own custom resources.
53
53
54
54
The `AFX_EXTENSION_MODULE` structure is used to hold a copy of the MFC extension DLL module state, including a copy of the runtime class objects that have been initialized by the MFC extension DLL as part of normal static object construction executed before `DllMain` is entered. For example:
When this method returns, contains the new rotation transformation. You must allocate storage for this parameter.
147
147
148
148
### Return Value
@@ -160,13 +160,13 @@ BOOL DrawParentBackground(
160
160
```
161
161
162
162
### Parameters
163
-
[in]`pWnd`
163
+
[in]*pWnd*
164
164
Pointer to a control's window.
165
165
166
-
[in]`pDC`
166
+
[in]*pDC*
167
167
Pointer to a device context.
168
168
169
-
[in]`lpRect`
169
+
[in]*lpRect*
170
170
Pointer to a rectangle that bounds the area to draw. The default value is `NULL`.
171
171
172
172
### Return Value
@@ -190,42 +190,42 @@ BOOL DrawTextOnGlass(
190
190
```
191
191
192
192
### Parameters
193
-
[in]`hTheme`
193
+
[in]*hTheme*
194
194
Handle to the theme data of a window, or `NULL`. The framework uses the specified theme to draw the text if this parameter is not `NULL` and themes are supported. Otherwise, the framework does not use a theme to draw the text.
195
195
196
196
Use the [OpenThemeData](http://msdn.microsoft.com/library/windows/desktop/bb759821) method to create an `HTHEME`.
197
197
198
-
[in]`pDC`
198
+
[in]*pDC*
199
199
Pointer to a device context.
200
200
201
-
[in]`iPartId`
201
+
[in]*iPartId*
202
202
The control part that has the desired text appearance. For more information, see the Parts column of the table in [Parts and States](http://msdn.microsoft.com/library/windows/desktop/bb773210). If this value is 0, the text is drawn in the default font, or a font selected into the device context.
203
203
204
-
[in]`iStateId`
204
+
[in]*iStateId*
205
205
The control state that has the desired text appearance. For more information, see the States column of the table in [Parts and States](http://msdn.microsoft.com/library/windows/desktop/bb773210).
206
206
207
-
[in]`strText`
207
+
[in]*strText*
208
208
The text to draw.
209
209
210
-
[in]`rect`
210
+
[in]*rect*
211
211
The boundary of the area in which the specified text is drawn.
212
212
213
-
[in]`dwFlags`
213
+
[in]*dwFlags*
214
214
A bitwise combination (OR) of flags that specify how the specified text is drawn.
215
215
216
-
If the `hTheme` parameter is `NULL` or if themes are not supported and enabled, the `nFormat` parameter of the [CDC::DrawText](../../mfc/reference/cdc-class.md#drawtext) method describes the valid flags. If themes are supported, the `dwFlags` parameter of the [DrawThemeTextEx](http://msdn.microsoft.com/library/windows/desktop/bb773317) method describes the valid flags.
216
+
If the *hTheme* parameter is `NULL` or if themes are not supported and enabled, the *nFormat* parameter of the [CDC::DrawText](../../mfc/reference/cdc-class.md#drawtext) method describes the valid flags. If themes are supported, the *dwFlags* parameter of the [DrawThemeTextEx](http://msdn.microsoft.com/library/windows/desktop/bb773317) method describes the valid flags.
217
217
218
-
[in]`nGlowSize`
218
+
[in]*nGlowSize*
219
219
The size of a glow effect that is drawn on the background before drawing the specified text. The default value is 0.
220
220
221
-
[in]`clrText`
221
+
[in]*clrText*
222
222
The color in which the specified text is drawn. The default value is the default color.
223
223
224
224
### Return Value
225
225
`TRUE` if a theme is used to draw the specified text; otherwise, `FALSE`.
226
226
227
227
### Remarks
228
-
A theme defines the visual style of an application. A theme is not used to draw the text if the `hTheme` parameter is `NULL`, or if the [DrawThemeTextEx](http://msdn.microsoft.com/library/windows/desktop/bb773317) method is not supported, or if [Desktop Window Manager](http://msdn.microsoft.com/library/windows/desktop/aa969540) (DWM) composition is disabled.
228
+
A theme defines the visual style of an application. A theme is not used to draw the text if the *hTheme* parameter is `NULL`, or if the [DrawThemeTextEx](http://msdn.microsoft.com/library/windows/desktop/bb773317) method is not supported, or if [Desktop Window Manager](http://msdn.microsoft.com/library/windows/desktop/aa969540) (DWM) composition is disabled.
`TRUE` to enable accessibility support; `FALSE` to disable accessibility support. The default value is `TRUE`.
250
250
251
251
### Remarks
@@ -271,25 +271,25 @@ BOOL ExcludeTag(
271
271
```
272
272
273
273
### Parameters
274
-
[in]`strBuffer`
274
+
[in]*strBuffer*
275
275
A buffer of text.
276
276
277
-
[in]`lpszTag`
277
+
[in]*lpszTag*
278
278
The name of a pair of opening and closing XML tags.
279
279
280
-
[out]`strTag`
281
-
When this method returns, the `strTag` parameter contains the text that is between the opening and closing XML tags that are named by the `lpszTag` parameter. Any leading or trailing whitespace is trimmed from the result.
280
+
[out]*strTag*
281
+
When this method returns, the *strTag* parameter contains the text that is between the opening and closing XML tags that are named by the *lpszTag* parameter. Any leading or trailing whitespace is trimmed from the result.
282
282
283
-
[in]`bIsCharsList`
284
-
`TRUE` to convert symbols for escape characters in the `strTag` parameter into actual escape characters; `FALSE` not to perform the conversion.The default value is `FALSE`. For more information, see Remarks.
283
+
[in]*bIsCharsList*
284
+
`TRUE` to convert symbols for escape characters in the *strTag* parameter into actual escape characters; `FALSE` not to perform the conversion.The default value is `FALSE`. For more information, see Remarks.
285
285
286
286
### Return Value
287
287
`TRUE` if this method is successful; otherwise, `FALSE`.
288
288
289
289
### Remarks
290
-
An XML tag pair consists of named opening and closing tags that indicate the start and end of a run of text in the specified buffer. The `strBuffer` parameter specifies the buffer, and the `lpszTag` parameter specifies the name of the XML tags.
290
+
An XML tag pair consists of named opening and closing tags that indicate the start and end of a run of text in the specified buffer. The *strBuffer* parameter specifies the buffer, and the *lpszTag* parameter specifies the name of the XML tags.
291
291
292
-
Use the symbols in the following table to encode a set of escape characters in the specified buffer. Specify `TRUE` for the `bIsCharsList` parameter to convert the symbols in the `strTag` parameter into actual escape characters. The following table uses the [_T()](../../c-runtime-library/data-type-mappings.md) macro to specify the symbol and escape character strings.
292
+
Use the symbols in the following table to encode a set of escape characters in the specified buffer. Specify `TRUE` for the *bIsCharsList* parameter to convert the symbols in the *strTag* parameter into actual escape characters. The following table uses the [_T()](../../c-runtime-library/data-type-mappings.md) macro to specify the symbol and escape character strings.
A value that specifies a user interface element whose color is retrieved. For a list of valid values, see the `nIndex` parameter of the [GetSysColor](http://msdn.microsoft.com/library/windows/desktop/ms724371) method.
313
+
[in]*nColor*
314
+
A value that specifies a user interface element whose color is retrieved. For a list of valid values, see the *nIndex* parameter of the [GetSysColor](http://msdn.microsoft.com/library/windows/desktop/ms724371) method.
315
315
316
316
### Return Value
317
317
The RGB color value of the specified user interface element. For more information, see Remarks.
318
318
319
319
### Remarks
320
-
If the `nColor` parameter is out of range, the return value is zero. Because zero is also a valid RGB value, you cannot use this method to determine whether a system color is supported by the current operating system. Instead, use the [GetSysColorBrush](http://msdn.microsoft.com/library/windows/desktop/dd144927) method, which returns `NULL` if the color is not supported.
320
+
If the *nColor* parameter is out of range, the return value is zero. Because zero is also a valid RGB value, you cannot use this method to determine whether a system color is supported by the current operating system. Instead, use the [GetSysColorBrush](http://msdn.microsoft.com/library/windows/desktop/dd144927) method, which returns `NULL` if the color is not supported.
A [NONCLIENTMETRICS](http://msdn.microsoft.com/library/windows/desktop/ff729175) structure that contains the scalable metrics associated with the nonclient area of a nonminimized window.
361
361
362
362
### Return Value
@@ -375,7 +375,7 @@ int GetTextHeight(BOOL bHorz = TRUE);
375
375
```
376
376
377
377
### Parameters
378
-
[in]`bHorz`
378
+
[in]*bHorz*
379
379
`TRUE` to retrieve the height of characters when text runs horizontally; `FALSE` to retrieve the height of characters when text runs vertically. The default value is `TRUE`.
380
380
381
381
### Return Value
@@ -414,10 +414,10 @@ BOOL InitD2D(
414
414
```
415
415
416
416
### Parameters
417
-
`d2dFactoryType`
417
+
*d2dFactoryType*
418
418
The threading model of the D2D factory and the resources it creates.
419
419
420
-
`writeFactoryType`
420
+
*writeFactoryType*
421
421
A value that specifies whether the write factory object will be shared or isolated
The qualified name of the registered class if this method succeeds; otherwise, a [resource exception](http://msdn.microsoft.com/library/ddd99292-819b-4fa4-8371-b1954ed5856d).
641
641
642
642
### Remarks
643
-
The return value is a colon-delimited list of the `lpszClassNamePrefix` parameter string, and the hexadecimal text representations of the handles of the current application instance; the application cursor, which is the arrow cursor whose identifier is IDC_ARROW; and the background brush. For more information about registering MFC window classes, see [AfxRegisterClass](../../mfc/reference/application-information-and-management.md#afxregisterclass).
643
+
The return value is a colon-delimited list of the *lpszClassNamePrefix* parameter string, and the hexadecimal text representations of the handles of the current application instance; the application cursor, which is the arrow cursor whose identifier is IDC_ARROW; and the background brush. For more information about registering MFC window classes, see [AfxRegisterClass](../../mfc/reference/application-information-and-management.md#afxregisterclass).
The transparency color key that the [Desktop Window Manager](http://msdn.microsoft.com/library/windows/desktop/aa969540) uses to compose the layered window.
681
681
682
-
[in]`bAlpha`
682
+
[in]*bAlpha*
683
683
The alpha value that is used to describe the opacity of the layered window.
684
684
685
-
[in]`dwFlags`
686
-
A bitwise combination (OR) of flags that specify which method parameters to use. Specify LWA_COLORKEY to use the `crKey` parameter as the transparency color. Specify LWA_ALPHA to use the `bAlpha` parameter to determine the opacity of the layered window.
685
+
[in]*dwFlags*
686
+
A bitwise combination (OR) of flags that specify which method parameters to use. Specify LWA_COLORKEY to use the *crKey* parameter as the transparency color. Specify LWA_ALPHA to use the *bAlpha* parameter to determine the opacity of the layered window.
687
687
688
688
### Return Value
689
689
`TRUE` if this method succeeds; otherwise, `FALSE`.
@@ -703,10 +703,10 @@ BOOL SetMenuFont(
703
703
```
704
704
705
705
### Parameters
706
-
[in]`lpLogFont`
706
+
[in]*lpLogFont*
707
707
Pointer to a structure that contains the attributes of a font.
708
708
709
-
[in]`bHorz`
709
+
[in]*bHorz*
710
710
`TRUE` to specify that the text runs horizontally; `FALSE` to specify that the text runs vertically.
|AFX_WM_ACCGETSTATE|Used for accessibility support. Send this message to `CMFCPopupMenu` or `CMFCRibbonPanelMenu` to retrieve the state of the current element.|Index of element, which could be a menu button or separator.|Not used.|The element state. It is -1 if the index is invalid, 0 if the menu button has no special attributes. Otherwise it is a combination of the following flags:<br /><br /> TBBS_DISABLED — item is disabled<br /><br /> TBBS_CHECKED — item is checked<br /><br /> TBBS_BUTTON — the item is a standard pushbutton<br /><br /> TBBS_PRESSED — button is pressed<br /><br /> TBBS_INDETERMINATE — undefined state<br /><br /> TBBS_SEPARATOR - rather than a menu button, this element forms a separation between other menu items|
26
26
|AFX_WM_CHANGE_ACTIVE_TAB|The framework sends this message to the resizable control bar control. Process this message to receive notifications from `CMFCTabCtrl` objects when a user changes an active tab.|The index of a tab.|Not used.|Nonzero.|
@@ -62,7 +62,7 @@ These messages are used in MFC.
62
62
|AFX_WM_UPDATETOOLTIPS|Sent to all tooltip owners to indicate that their tooltip controls should be recreated.|The type of control that should process this message. See the table later in this topic for a list of possible values.|Not used.|Not used.|
63
63
|AFX_WM_WINDOW_HELP|`CMFCWindowsManagerDialog` sends this message to the parent frame when the user clicks the **Help** button, or enters the help mode by clicking the **Help** caption button or the F1 key.|Not used.|A pointer to the instance of `CMFCWindowsManagerDialog`.|Not used.|
64
64
65
-
The following table shows the values for the low word of the `lParam` parameter of the AFX_WM_HSCROLL method:
65
+
The following table shows the values for the low word of the *lParam* parameter of the AFX_WM_HSCROLL method:
66
66
67
67
|||
68
68
|-|-|
@@ -78,9 +78,9 @@ These messages are used in MFC.
78
78
|SB_THUMBTRACK|The user is dragging the scroll box. The AFX_WM_ON_HSCROLL message is sent repeatedly with this value until the user releases the mouse button. The high-order word indicates the position to which the scroll box has been dragged.|
79
79
80
80
> [!NOTE]
81
-
> The high-order word of the `lParam` parameter specifies the current position of the scroll box if the low-order word is SB_THUMBPOSITION or SB_THUMBTRACK; otherwise, this word is not used.
81
+
> The high-order word of the *lParam* parameter specifies the current position of the scroll box if the low-order word is SB_THUMBPOSITION or SB_THUMBTRACK; otherwise, this word is not used.
82
82
83
-
The following table lists the flag values for the `lParam` parameter of the AFX_WM_UPDATETOOLTIPS message:
83
+
The following table lists the flag values for the *lParam* parameter of the AFX_WM_UPDATETOOLTIPS message:
0 commit comments