首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > VC/MFC >

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

2012-09-20 
CListBox如何取消某一项高亮状态CListBox如何取消某一项高亮状态?急用,求各位大大指点[解决办法]CListBox:

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. 

热点排行