vc列表控件的初始化

void CManageProcessDlg::InitList()
{
 m_ListProcess.SetExtendedStyle(m_ListProcess.GetExtendedStyle() |
  LVS_EX_GRIDLINES | LVS_EX_FULLROWSELECT);

 m_ListProcess.InsertColumn(0,_T("NO"));
 m_ListProcess.InsertColumn(1,_T("进程名"));

 m_ListProcess.SetColumnWidth(0,LVSCW_AUTOSIZE_USEHEADER);
 m_ListProcess.SetColumnWidth(1,LVSCW_AUTOSIZE_USEHEADER);

}
原文地址:https://www.cnblogs.com/mynona/p/3162649.html