ListView-扩展选择? [英] ListView - Extended Selection?

查看:78
本文介绍了ListView-扩展选择?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好乡亲:

  在Win 7/64,VS 2010 Pro,Win32 no MFC上开发32位应用程序.

  在发布大型应用程序之前,我一直将ListBox控件转换为ListView控件.

  我在给ListView控件提供ListBox控件具有的扩展选择"行为时遇到了麻烦.

  我使用的是资源编辑器,因此我不确定真实"这些标记和消息的名称.

  列表框可以有4种不同的选择样式,单,多,扩展和无.

   单身"和无"是不言自明的.

  多项选择允许您在按住Shift键和控制键的同时使用鼠标左键进行选择,从而可以选择多项.

  扩展选择允许通过按住鼠标左键并将其拖动到多个项目上来选择多个项目,而无需按下Shift或控制键.

  我试图为我的ListView控件进行此扩展选择.

  我构建的每个ListView都有多重选择行为,我可以按住shift键并单击以选择多个项目.

  奇怪的是,如果光标位于第一个子项目的右半部分附近,则每个ListView控件也都允许扩展选择.我点击子项目的右侧,然后在鼠标左键按下的情况下拖动, 我可以选择多个项目而无需按Shift键.

  即使第一个子项目已移至其他列,此方法仍然有效.

  每个Listview.这被记录为标准行为吗?

   ListView具有完整的行选择功能.

  如何在控件的整个宽度上提供ListView扩展选择?

  我之前曾问过这个问题.我不知道如何在30行控制台应用程序中说明这一点,我发布了一个427行示例,包括.rc和resource.h,但没有答案.

          谢谢
          拉里

 

解决方案

拉里,

您可以将此建议或反馈以正式格式提交给 Microsoft Connect反馈中心. Microsoft工程师将对其进行认真评估,并向产品小组报告.

在反馈中,您可以引用此线程的URL,以便可以进行整个对话.我们的工程师会仔细评估提交的每个反馈.他们将通过该门户让您进一步了解他们的评论.这将是 如果您还可以在此处粘贴指向已提交反馈的链接,那很好,那么其他社区成员也可以看到它.

再次感谢您的宝贵反馈!

最诚挚的问候,


Hello Folks:

   Developing 32 bit app on Win 7/64, VS 2010 Pro, Win32 no MFC. 

   I've been turning ListBox controls into ListView controls before releasing a large application. 

   I'm having trouble giving my ListView controls the Extended Selection behavior that my ListBox controls had. 

   I use the Resource Editor, so I'm not sure of the "Real" names for these flags and messages. 

   A ListBox can have 4 different selection styles, Single, Multiple, Extended and None. 

   Single and None are self explanatory. 

   Multiple selection allows multiple items to be selected by holding down the shift and control keys while selecting with the mouse left button. 

   Extended selection allows multiple items to be selected by holding down the left mouse button and dragging it over several items, without requiring the shift or control key to be pressed. 

   I've attempted to have this extended selection for my ListView controls. 

   Every ListView I've built has the multiple selection behavior, I can hold down shift and click to select multiple items. 

   The odd thing is that every ListView control also allows the extended selection, if the cursor is over the right half, approximately, of the first subitem.  I click on the right side of the subitem, and drag with the left mouse button pressed, I can select multiple items without pressing the shift key. 

   This works even if the first subitem has been moved to a different column. 

   Every Listview.  Is this documented as the standard behavior? 

   The ListViews have full row select, among other things. 

   How can I give a ListView extended select over the width of the control?

   I've asked about this before.  I don't know how to illustrate this in a 30 line console app, I have posted a 427 line example, including .rc and resource.h, with no answer. 

            Thanks
            Larry

 

解决方案

Hi Larry,

You can submit this suggestion or feedback to Microsoft Connect Feedback Center in formal format. Microsoft engineers will evaluate them seriously and report to Product Group.

In your feedback, you can quote the URL to this thread, so that the whole conversation can be available. Every feedback submitted will be evaluated carefully by our engineers. They will let you know their comments further through that portal. It would be great if you can also paste the link to the submitted feedback here, so that other community members can see it as well.

Thank you for your valuable feedback again!

Best regards, 


这篇关于ListView-扩展选择?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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