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/sockaddr-in-structure.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
@@ -28,7 +28,7 @@ struct in_addr sin_addr;
28
28
29
29
#### Parameters
30
30
*sin_family*
31
-
Address family (must be **AF_INET**).
31
+
Address family (must be AF_INET).
32
32
33
33
*sin_port*
34
34
IP port.
@@ -42,7 +42,7 @@ struct in_addr sin_addr;
42
42
## Remarks
43
43
This is the form of the `SOCKADDR` structure specific to the Internet address family and can be cast to `SOCKADDR`.
44
44
45
-
The IP address component of this structure is of type **IN_ADDR**. The **IN_ADDR** structure is defined in Windows Sockets header file WINSOCK.H as follows:
45
+
The IP address component of this structure is of type `IN_ADDR`. The `IN_ADDR` structure is defined in Windows Sockets header file WINSOCK.H as follows:
Copy file name to clipboardExpand all lines: docs/mfc/reference/standard-command-and-window-ids.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,15 +13,15 @@ ms.author: "mblome"
13
13
ms.workload: ["cplusplus"]
14
14
---
15
15
# Standard Command and Window IDs
16
-
The Microsoft Foundation Class Library defines a number of standard command and window IDs in Afxres.h. These IDs are most commonly used within the resource editors and the Properties window to map messages to your handler functions. All standard commands have an **ID_** prefix. For example, when you use the menu editor, you normally bind the File Open menu item to the standard `ID_FILE_OPEN` command ID.
16
+
The Microsoft Foundation Class Library defines a number of standard command and window IDs in Afxres.h. These IDs are most commonly used within the resource editors and the Properties window to map messages to your handler functions. All standard commands have an **ID_** prefix. For example, when you use the menu editor, you normally bind the File Open menu item to the standard ID_FILE_OPEN command ID.
17
17
18
-
For most standard commands, application code does not need to refer to the command ID, because the framework itself handles the commands through message maps in its primary framework classes (`CWinThread`, `CWinApp`, `CView`, **CDocument**, and so on).
18
+
For most standard commands, application code does not need to refer to the command ID, because the framework itself handles the commands through message maps in its primary framework classes (`CWinThread`, `CWinApp`, `CView`, `CDocument`, and so on).
19
19
20
-
In addition to standard command IDs, a number of other standard IDs are defined which have a prefix of **AFX_ID**. These IDs include standard window IDs (prefix **AFX_IDW_**), string IDs (prefix**AFX_IDS_**), and several other types.
20
+
In addition to standard command IDs, a number of other standard IDs are defined which have a prefix of **AFX_ID**. These IDs include standard window IDs (prefix **AFX_IDW_**), string IDs (prefix **AFX_IDS_**), and several other types.
21
21
22
-
IDs that begin with the **AFX_ID** prefix are rarely used by programmers, but you might need to refer to these IDs when overriding framework functions that also refer to the**AFX_ID**s.
22
+
IDs that begin with the **AFX_ID** prefix are rarely used by programmers, but you might need to refer to these IDs when overriding framework functions that also refer to the **AFX_ID**s.
23
23
24
-
IDs are not individually documented in this reference. You can find more information on them in Technical Notes [20](../../mfc/tn020-id-naming-and-numbering-conventions.md), [21](../../mfc/tn021-command-and-message-routing.md), and[22](../../mfc/tn022-standard-commands-implementation.md).
24
+
IDs are not individually documented in this reference. You can find more information on them in Technical Notes [20](../../mfc/tn020-id-naming-and-numbering-conventions.md), [21](../../mfc/tn021-command-and-message-routing.md), and [22](../../mfc/tn022-standard-commands-implementation.md).
25
25
26
26
> [!NOTE]
27
27
> The header file Afxres.h is indirectly included in Afxwin.h. You must explicitly include the following statement in your application's resource script (.rc) file:
Copy file name to clipboardExpand all lines: docs/mfc/reference/standard-dialog-data-exchange-routines.md
+45-48Lines changed: 45 additions & 48 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ This topic lists the standard dialog data exchange (DDX) routines used for commo
39
39
|[DDX_Text](#ddx_text)|Initializes or retrieves the current value of an edit control.|
40
40
41
41
## <aname="ddx_cbindex"></a> DDX_CBIndex
42
-
The `DDX_CBIndex` function manages the transfer of `int` data between a combo box control in a dialog box, form view, or control view object and a `int` data member of the dialog box, form view, or control view object.
42
+
The `DDX_CBIndex` function manages the transfer of **int** data between a combo box control in a dialog box, form view, or control view object and a **int** data member of the dialog box, form view, or control view object.
43
43
44
44
```
45
45
void AFXAPI DDX_CBIndex(
@@ -49,10 +49,10 @@ void AFXAPI DDX_CBIndex(
49
49
```
50
50
51
51
### Parameters
52
-
`pDX`
52
+
*pDX*
53
53
A pointer to a `CDataExchange` object. The framework supplies this object to establish the context of the data exchange, including its direction.
54
54
55
-
`nIDC`
55
+
*nIDC*
56
56
The resource ID of the combo box control associated with the control property.
57
57
58
58
*index*
@@ -77,10 +77,10 @@ void AFXAPI DDX_CBString(
77
77
```
78
78
79
79
### Parameters
80
-
`pDX`
80
+
*pDX*
81
81
A pointer to a `CDataExchange` object. The framework supplies this object to establish the context of the data exchange, including its direction.
82
82
83
-
`nIDC`
83
+
*nIDC*
84
84
The resource ID of the combo box control associated with the control property.
The `DDX_Check` function manages the transfer of `int` data between a check box control in a dialog box, form view, or control view object and a `int` data member of the dialog box, form view, or control view object.
132
+
The `DDX_Check` function manages the transfer of **int** data between a check box control in a dialog box, form view, or control view object and a **int** data member of the dialog box, form view, or control view object.
133
133
134
134
```
135
135
void AFXAPI DDX_Check(
@@ -139,10 +139,10 @@ void AFXAPI DDX_Check(
139
139
```
140
140
141
141
### Parameters
142
-
`pDX`
142
+
*pDX*
143
143
A pointer to a `CDataExchange` object. The framework supplies this object to establish the context of the data exchange, including its direction.
144
144
145
-
`nIDC`
145
+
*nIDC*
146
146
The resource ID of the check box control associated with the control property.
147
147
148
148
*value*
@@ -157,7 +157,7 @@ void AFXAPI DDX_Check(
157
157
**Header** afxdd_.h
158
158
159
159
## <aname="ddx_control"></a> DDX_Control
160
-
The `DDX_Control` function subclasses the control, specified by `nIDC`, of the dialog box, form view, or control view object.
160
+
The `DDX_Control` function subclasses the control, specified by *nIDC*, of the dialog box, form view, or control view object.
161
161
162
162
```
163
163
void AFXAPI DDX_Control(
@@ -167,17 +167,17 @@ void AFXAPI DDX_Control(
167
167
```
168
168
169
169
### Parameters
170
-
`pDX`
170
+
*pDX*
171
171
A pointer to a [CDataExchange](../../mfc/reference/cdataexchange-class.md) object.
172
172
173
-
`nIDC`
173
+
*nIDC*
174
174
The resource ID of the control to be subclassed.
175
175
176
176
*rControl*
177
177
A reference to a member variable of the dialog box, form view, or control view object related to the specified control.
178
178
179
179
### Remarks
180
-
The `pDX` object is supplied by the framework when the `DoDataExchange` function is called. Therefore, `DDX_Control` should only be called within your override of `DoDataExchange`.
180
+
The *pDX* object is supplied by the framework when the `DoDataExchange` function is called. Therefore, `DDX_Control` should only be called within your override of `DoDataExchange`.
181
181
182
182
For more information about DDX, see [Dialog Data Exchange and Validation](../../mfc/dialog-data-exchange-and-validation.md).
A pointer to a [CDataExchange](../../mfc/reference/cdataexchange-class.md) object. The framework supplies this object to establish the context of the data exchange, including its direction. You don't need to delete this object.
210
210
211
-
`nIDC`
211
+
*nIDC*
212
212
The resource ID of the date and time picker control associated with the member variable.
Creates a .NET control matching the control's resource ID.
232
229
233
230
### Syntax
234
-
```
231
+
```
235
232
template <typename T>
236
233
void DDX_ManagedControl(
237
234
CDataExchange* pDX,
238
235
int nIDC,
239
236
CWinFormsControl<T>& control );
240
237
```
241
238
### Parameters
242
-
`pDX`
239
+
*pDX*
243
240
A pointer to a [CDataExchange Class](cdataexchange-class.md) object. The framework supplies this object to establish the context of the data exchange, including its direction.
244
241
245
-
`nIDC`
242
+
*nIDC*
246
243
The resource ID of the control associated with the control property.
247
244
248
-
`control`
245
+
*control*
249
246
A reference to a [CWinFormsControl Class](cwinformscontrol-class.md) object.
250
247
251
248
### Remarks
@@ -273,14 +270,14 @@ void AFXAPI DDX_IPAddress(
273
270
```
274
271
275
272
### Parameters
276
-
`pDX`
273
+
*pDX*
277
274
A pointer to a `CDataExchange` object. The framework supplies this object to establish the context of the data exchange, including its direction.
278
275
279
-
`nIDC`
276
+
*nIDC*
280
277
The resource ID of the IP Address control associated with the control property.
281
278
282
279
*value*
283
-
A reference to the `DWORD` containing the four-field value of the IP Address control. The fields are filled or read as follows.
280
+
A reference to the DWORD containing the four-field value of the IP Address control. The fields are filled or read as follows.
The `DDX_LBIndex` function manages the transfer of `int` data between a list box control in a dialog box, form view, or control view object and an `int` data member of the dialog box, form view, or control view object.
300
+
The `DDX_LBIndex` function manages the transfer of **int** data between a list box control in a dialog box, form view, or control view object and an **int** data member of the dialog box, form view, or control view object.
304
301
305
302
```
306
303
void AFXAPI DDX_LBIndex(
@@ -310,10 +307,10 @@ void AFXAPI DDX_LBIndex(
310
307
```
311
308
312
309
### Parameters
313
-
`pDX`
310
+
*pDX*
314
311
A pointer to a `CDataExchange` object. The framework supplies this object to establish the context of the data exchange, including its direction.
315
312
316
-
`nIDC`
313
+
*nIDC*
317
314
The resource ID of the list box control associated with the control property.
318
315
319
316
*index*
@@ -338,10 +335,10 @@ void AFXAPI DDX_LBString(
338
335
```
339
336
340
337
### Parameters
341
-
`pDX`
338
+
*pDX*
342
339
A pointer to a `CDataExchange` object. The framework supplies this object to establish the context of the data exchange, including its direction.
343
340
344
-
`nIDC`
341
+
*nIDC*
345
342
The resource ID of the list box control associated with the control property.
A pointer to a [CDataExchange](../../mfc/reference/cdataexchange-class.md) object. The framework supplies this object to establish the context of the data exchange, including its direction. You don't need to delete this object.
414
411
415
-
`nIDC`
412
+
*nIDC*
416
413
The resource ID of the month calendar control associated with the member variable.
417
414
418
415
*value*
@@ -431,7 +428,7 @@ void AFXAPI DDX_MonthCalCtrl(
431
428
**Header** afxdd_.h
432
429
433
430
## <aname="ddx_radio"></a> DDX_Radio
434
-
The `DDX_Radio` function manages the transfer of `int` data between a radio control group in a dialog box, form view, or control view object and a `int` data member of the dialog box, form view, or control view object. The value of the `int` data member is determined according to which radio button within the group is selected.
431
+
The `DDX_Radio` function manages the transfer of **int** data between a radio control group in a dialog box, form view, or control view object and a **int** data member of the dialog box, form view, or control view object. The value of the **int** data member is determined according to which radio button within the group is selected.
435
432
436
433
```
437
434
void AFXAPI DDX_Radio(
@@ -441,10 +438,10 @@ void AFXAPI DDX_Radio(
441
438
```
442
439
443
440
### Parameters
444
-
`pDX`
441
+
*pDX*
445
442
A pointer to a `CDataExchange` object. The framework supplies this object to establish the context of the data exchange, including its direction.
446
443
447
-
`nIDC`
444
+
*nIDC*
448
445
The resource ID of the first radio control in the group.
449
446
450
447
*value*
@@ -453,15 +450,15 @@ void AFXAPI DDX_Radio(
453
450
### Remarks
454
451
When `DDX_Radio` is called, *value* is set to the current state of the radio control group. The value is set as a 0-based index of the radio control that is currently checked, or -1 if no radio controls are checked.
455
452
456
-
For example, in case that the first radio button in the group is checked (the button with WS_GROUP style) the value of the `int` member is 0 and so on.
453
+
For example, in case that the first radio button in the group is checked (the button with WS_GROUP style) the value of the **int** member is 0 and so on.
457
454
458
455
For more information about DDX, see [Dialog Data Exchange and Validation](../../mfc/dialog-data-exchange-and-validation.md).
459
456
460
457
### Requirements
461
458
**Header** afxdd_.h
462
459
463
460
## <aname="ddx_scroll"></a> DDX_Scroll
464
-
The `DDX_Scroll` function manages the transfer of `int` data between a scroll-bar control in a dialog box, form view, or control view object and an `int` data member of the dialog box, form view, or control view object.
461
+
The `DDX_Scroll` function manages the transfer of **int** data between a scroll-bar control in a dialog box, form view, or control view object and an **int** data member of the dialog box, form view, or control view object.
465
462
466
463
```
467
464
void AFXAPI DDX_Scroll(
@@ -471,10 +468,10 @@ void AFXAPI DDX_Scroll(
471
468
```
472
469
473
470
### Parameters
474
-
`pDX`
471
+
*pDX*
475
472
A pointer to a `CDataExchange` object. The framework supplies this object to establish the context of the data exchange, including its direction.
476
473
477
-
`nIDC`
474
+
*nIDC*
478
475
The resource ID of the scroll-bar control associated with the control property.
479
476
480
477
*value*
@@ -489,7 +486,7 @@ void AFXAPI DDX_Scroll(
489
486
**Header** afxdd_.h
490
487
491
488
## <aname="ddx_slider"></a> DDX_Slider
492
-
The `DDX_Slider` function manages the transfer of `int` data between a slider control in a dialog box or form view and an `int` data member of the dialog box or form view object.
489
+
The `DDX_Slider` function manages the transfer of **int** data between a slider control in a dialog box or form view and an **int** data member of the dialog box or form view object.
493
490
494
491
```
495
492
void AFXAPI DDX_Slider(
@@ -499,10 +496,10 @@ void AFXAPI DDX_Slider(
499
496
```
500
497
501
498
### Parameters
502
-
`pDX`
499
+
*pDX*
503
500
A pointer to a [CDataExchange](../../mfc/reference/cdataexchange-class.md) object. The framework supplies this object to establish the context of the data exchange, including its direction.
504
501
505
-
`nIDC`
502
+
*nIDC*
506
503
The resource ID of the slider control.
507
504
508
505
*value*
@@ -517,7 +514,7 @@ void AFXAPI DDX_Slider(
517
514
**Header** afxdd_.h
518
515
519
516
## <aname="ddx_text"></a> DDX_Text
520
-
The `DDX_Text` function manages the transfer of `int`, **UINT**, **long**, `DWORD`, `CString`, **float**, or **double** data between an edit control in a dialog box, form view, or control view and a [CString](../../atl-mfc-shared/reference/cstringt-class.md) data member of the dialog box, form view, or control view object.
517
+
The `DDX_Text` function manages the transfer of **int**, **UINT**, **long**, DWORD, `CString`, **float**, or **double** data between an edit control in a dialog box, form view, or control view and a [CString](../../atl-mfc-shared/reference/cstringt-class.md) data member of the dialog box, form view, or control view object.
521
518
522
519
```
523
520
void AFXAPI DDX_Text(
@@ -577,10 +574,10 @@ void AFXAPI DDX_Text(
577
574
```
578
575
579
576
### Parameters
580
-
`pDX`
577
+
*pDX*
581
578
A pointer to a [CDataExchange](../../mfc/reference/cdataexchange-class.md) object. The framework supplies this object to establish the context of the data exchange, including its direction.
582
579
583
-
`nIDC`
580
+
*nIDC*
584
581
The ID of an edit control in the dialog box, form view, or control view object.
0 commit comments