Export (0) Print
Expand All
MFC
TRY
Expand Minimize
This topic has not yet been rated - Rate this topic

DDX_CBString 

The DDX_CBString function manages the transfer of CString data between the edit control of a combo box control in a dialog box, form view, or control view object and a CString data member of the dialog box, form view, or control view object.


void AFXAPI DDX_CBString(
   CDataExchange* pDX,
   int nIDC,
   CString& value 
);

Parameters

pDX

A pointer to a CDataExchange object. The framework supplies this object to establish the context of the data exchange, including its direction.

nIDC

The resource ID of the combo box control associated with the control property.

value

A reference to a member variable of the dialog box, form view, or control view object with which data is exchanged.

When DDX_CBString is called, value is set to the current combo box selection. If no item is selected, value is set to a string of zero length.

NoteNote

If the combo box is a drop-down list box, the value exchanged is limited to 255 characters.

For more information about DDX, see Dialog Data Exchange and Validation.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.