The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
DDX_ManagedControl
Creates a .NET control matching the control's resource ID.
template <typename T> void DDX_ManagedControl( CDataExchange* pDX, int nIDC, CWinFormsControl<T>& control );
- pDX
A pointer to a CDataExchange Class object. The framework supplies this object to establish the context of the data exchange, including its direction.
- nIDC
The resource ID of the control associated with the control property.
- control
A reference to a CWinFormsControl Class object.
DDX_ManagedControl calls CWinFormsControl::CreateManagedControl to create a control matching the resource control ID. Use DDX_ManagedControl to create controls from resource IDs in CDialog::OnInitDialog. For data exchange, you do not need to use the DDX/DDV functions with Windows Forms controls.
For more information, see How to: Do DDX/DDV Data Binding with Windows Forms.
Requirements
Header: afxwinforms.h
Show: