// 设置扩展风格
DWORD dwStyle = m_wndListCtrl.GetExtendedStyle();
dwStyle |= LVS_EX_CHECKBOXES;
m_wndListCtrl.SetExtendedStyle(dwStyle);
// 设置列
m_wndListCtrl.InsertColumn(0, "生效", LVCFMT_LEFT, 40);
m_wndListCtrl.InsertColumn(1, "NAME", LVCFMT_LEFT, 50);
int nRow1 = m_wndListCtrl.InsertItem(0, "");
int nRow2 = m_wndListCtrl.InsertItem(1, "");
m_wndListCtrl.SetItemText(nRow1, 1, "第一行");
m_wndListCtrl.SetItemText(nRow2, 1, "第二行");