热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

请问列表框设置LVS_EX_CHECKBOXES风格,怎样确定里面的复选框被选中

m_list.SetExtendedStyle(m_list.GetExtendedStyle()|LVS_EX_CHECKBOXES);怎样确定里面的复选框被选中
m_list.SetExtendedStyle(m_list.GetExtendedStyle()|LVS_EX_CHECKBOXES);
怎样确定里面的复选框被选中

3 个解决方案

#1


ListView_GetCheckState(hwndLV,i);

#2


ListView_GetCheckState


Determines if an item in a list-view control is selected. This should be used only for list-view controls that have the LVS_EX_CHECKBOXES style. 

BOOL ListView_GetCheckState(
    HWND hwndLV,
    UINT iIndex
);

Parameters
hwndLV 
Handle to a list-view control. 
iIndex 
Index of the item for which to retrieve the check state. 
Return Values
Returns nonzero if the given item is selected, or zero otherwise. If this macro is applied to a list-view control that does not have check boxes enabled, the return value is not reliable.

#3


thanks

推荐阅读
author-avatar
Sadness_小妖_619
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有