DDX_ManagedControl
會建立。NET 控制項中比對控制項的資源 id。
template <typename T>
void DDX_ManagedControl(
CDataExchange* pDX,
int nIDC,
CWinFormsControl<T>& control
);
參數
pDX
變數的指標, CDataExchange 類別物件。 此架構提供這個物件建立資料交換,包括它的方向的內容。nIDC
控制項與控制項屬性相關聯的資源 ID。control
對 CWinFormsControl 類別 物件的參考。
備註
DDX_ManagedControl 會呼叫 CWinFormsControl::CreateManagedControl 以建立與資源控制項 ID 相符的控制項。 使用DDX_ManagedControl來建立控制項中的資源 id CDialog::OnInitDialog。 對於資料交換,您不需要使用 DDX/DDV 函式和 Windows Form 控制項。
如需詳細資訊,請參閱 HOW TO:使用 Windows Form 執行 DDX/DDV 資料繫結。
需求
標頭: afxwinforms.h