DDX_Text

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 data member of the dialog box, form view, or control view object.

void AFXAPI DDX_Text(
   CDataExchange* pDX,
   int nIDC,
   BYTE& value 
);
void AFXAPI DDX_Text(
   CDataExchange* pDX,
   int nIDC,
   short& value 
);
void AFXAPI DDX_Text(
   CDataExchange* pDX,
   int nIDC,
   int& value 
);
void AFXAPI DDX_Text(
   CDataExchange* pDX,
   int nIDC,
   UINT& value 
);
void AFXAPI DDX_Text(
   CDataExchange* pDX,
   int nIDC,
   long& value 
);
void AFXAPI DDX_Text(
   CDataExchange* pDX,
   int nIDC,
   DWORD& value 
);
void AFXAPI DDX_Text(
   CDataExchange* pDX,
   int nIDC,
   CString& value 
);
void AFXAPI DDX_Text(
   CDataExchange* pDX,
   int nIDC,
   float& value 
);
void AFXAPI DDX_Text(
   CDataExchange* pDX,
   int nIDC,
   double& value 
);
void AFXAPI DDX_Text(
   CDataExchange* pDX,
   int nIDC,
   COleCurrency& value 
);
void AFXAPI DDX_Text(
   CDataExchange* pDX,
   int nIDC,
   COleDateTime& 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 ID of an edit control in the dialog box, form view, or control view object.

  • value
    A reference to a data member in the dialog box, form view, or control view object. The data type of value depends on which of the overloaded versions of DDX_Text you use.

Remarks

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

Requirements

Header: afxdd_.h

See Also

Concepts

MFC Macros and Globals

Other Resources

Standard Dialog Data Exchange Routines