读书人

CListBox怎么取消某一项高亮状态

发布时间: 2012-09-20 09:36:51 作者: rapoo

CListBox如何取消某一项高亮状态
CListBox如何取消某一项高亮状态?急用,求各位大大指点

[解决办法]
CListBox::SetSel()

int SetSel(
int nIndex,
BOOL bSelect = TRUE
);

bSelect
Specifies how to set the selection. If bSelect is TRUE, the string is selected and highlighted; if FALSE, the highlight is removed and the string is no longer selected. The specified string is selected and highlighted by default.

读书人网 >VC/MFC

热点推荐