Udostępnij za pośrednictwem


DDP_Text

Call this function in your control's DoDataExchange function to synchronize the value of the property with the associated property page control.

void AFXAPI DDP_Text(
   CDataExchange*pDX,
   int id,
   BYTE &member,
   LPCTSTR pszPropName 
);
void AFXAPI DDP_Text(
   CDataExchange*pDX,
   int id,
   int &member,
   LPCTSTR pszPropName 
);
void AFXAPI DDP_Text(
   CDataExchange*pDX,
   int id,
   UINT &member,
   LPCTSTR pszPropName 
);
void AFXAPI DDP_Text(
   CDataExchange*pDX,
   int id,
   long &member,
   LPCTSTR pszPropName 
);
void AFXAPI DDP_Text(
   CDataExchange*pDX,
   int id,
   DWORD &member,
   LPCTSTR pszPropName 
);
void AFXAPI DDP_Text(
   CDataExchange*pDX,
   int id,
   float &member,
   LPCTSTR pszPropName 
);
void AFXAPI DDP_Text(
   CDataExchange*pDX,
   int id,
   double &member,
   LPCTSTR pszPropName 
);
void AFXAPI DDP_Text(
   CDataExchange*pDX,
   int id,
   CString &member,
   LPCTSTR pszPropName 
);

Parameters

  • pDX
    Pointer to a CDataExchange object. The framework supplies this object to establish the context of the data exchange, including its direction.

  • id
    The resource ID of the control associated with the control property specified by pszPropName.

  • member
    The member variable associated with the property page control specified by id and the property specified by pszPropName.

  • pszPropName
    The property name of the control property to be exchanged with the control specified by id.

Remarks

This function should be called before the corresponding DDX_Text function call.

Requirements

Header: afxctl.h

See Also

Reference

DDP_Check

DDP_Radio

COleControl::DoPropExchange

DDX_Text

Concepts

MFC Macros and Globals