a) 常用List扩展风格
LVS_EX_CHECKBOXES 复选框
LVS_EX_FLATSB 扁平滚动条
LVS_EX_FULLROWSELECT 整行选中
LVS_EX_GRIDLINES 网格线
LVS_EX_HEADERDRAGDROP 允许拖放列
b) 常见应用
//获取当前选中的Item
nSelectItem = ((CListCtrl *)GetDlgItem(IDC_LIST1))->GetSelectionMark();
//判断鼠标在List中的点击位置
DWORD dwPos = GetMessagePos();
CPoint point(LOWORD(dwPos), HIWORD(dwPos));
((CListCtrl *)GetDlgItem(IDC_LIST1))->ScreenToClient(&point);
UINT nflags;
int nCurrentItem = -1;
nCurrentItem = ((CListCtrl *)GetDlgItem(IDC_LIST1))->HitTest(point, &nflags);
if (nflags == LVHT_ONITEMSTATEICON //点击CheckBox
|| nflags == LVHT_NOWHERE)//点击空白区域
{
return ;
}