CListCtrl - 如何启用多选 [英] CListCtrl - how to enable multiple selection

查看:223
本文介绍了CListCtrl - 如何启用多选的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为Windows Mobile创建一个MFC应用程序,不知道如何为列表控件(CListCtrl)启用多个选择。在属性面板中,单选选项设置为False但仍不能选择多个项目。

I am creating a MFC application for Windows Mobile and don't know how to enable multiple selection for List Control (CListCtrl). In properties panel Single Selection is set to False but still can't select multiple items.

任何想法?

推荐答案

我从来没有针对Windows Mobile,但你可以尝试以下:

I have never targeted Windows Mobile but you might try the following:


list.ModifyStyle LVS_SINGLESEL,0);

list.ModifyStyle(LVS_SINGLESEL, 0);

这篇关于CListCtrl - 如何启用多选的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆