CListCtrl增加复选框和表格线
2022-10-20
39
0
CListCtrl* pList = (CListCtrl*)GetDlgItem(IDC_LIST_MP4);
pList->SetExtendedStyle(LVS_EX_CHECKBOXES | LVS_EX_GRIDLINES | LVS_EX_SUBITEMIMAGES | LVS_EX_FULLROWSELECT);
pList->InsertColumn(0, TEXT("Id"));
pList->InsertColumn(1, TEXT("文件名"));
pList->InsertColumn(2, TEXT("路径"));
pList->SetColumnWidth(0, 40);
pList->SetColumnWidth(1, 100);
pList->SetColumnWidth(2, 100);