DoDataExchange(CDataExchange* pDX)没有执行到原因

void CApplicationDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
DDX_Control(pDX, IDC_LIST_APP, m_AppListCtrl);
}

BOOL CApplicationDlg::OnInitDialog()
{
CDialog::OnInitDialog();   //没写这个,DoDataExchange不会被调用到

m_appListRect=g_listRect;
m_controArealRect=g_controlRect;

m_AppListCtrl.SetExtendedStyle(LVS_EX_FULLROWSELECT|LVS_EX_GRIDLINES);
m_AppListCtrl.SetRowHeigt(16);
m_AppListCtrl.InsertColumn(2,_T("大小"),LVCFMT_CENTER,120);

return TRUE;
}

你可能感兴趣的:(Exchange)