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

相关文章:

  • 2021-05-07
  • 2021-04-26
  • 2021-09-11
  • 2022-12-23
  • 2021-08-03
  • 2022-12-23
  • 2021-12-16
  • 2022-12-23
猜你喜欢
  • 2021-12-31
  • 2021-09-22
  • 2022-01-18
  • 2021-11-13
  • 2021-05-31
  • 2021-10-13
  • 2021-12-04
相关资源
相似解决方案