Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
MFC
TRY
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

DDP_CBString

Call this function in your property page's DoDataExchange function to synchronize the value of a string property with the current selection in a combo box on the property page.

void AFXAPI DDP_CBString( 
   CDataExchange* pDX, 
   int id, 
   CString& member, 
   LPCTSTR pszPropName  
);

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 combo box 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 combo box string specified by id.

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

Header: afxctl.h

Community Additions

ADD
Show:
© 2015 Microsoft