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;
}

posted @ 2010-07-12 15:13  奥雷连诺  阅读(583)  评论(0编辑  收藏  举报