BOOL CModemListView::PreCreateWindow(CREATESTRUCT& cs) { // TODO: Modify the Window class or styles here by modifying // the CREATESTRUCT cs cs.style |= LVS_REPORT; return CXTListView::PreCreateWindow(cs); }//..设置显示扩展类型 SetExtendedStyle (LVS_EX_FULLROWSELECT);
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
cs.style |= LVS_REPORT; return CXTListView::PreCreateWindow(cs);
}//..设置显示扩展类型
SetExtendedStyle (LVS_EX_FULLROWSELECT);
的含义不是:“我想控制她每次只能选择一个item,也就是在选择了一个之后,如果按ctrl再选择第二个item,并不会同时两个都高亮显示”
而是在文本前面出现一个检查框!
m_ListFileCtrl.SetExtendedStyle (LVS_EX_CHECKBOXES );
与m_ListFileCtrl.SetExtendedStyle (LVS_SINGLESEL);
等价