在CMFCListCtrl中自动选择 [英] Automatic Selection in CMFCListCtrl

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

问题描述

你好

信封:VS2010 SP1,Win7

我在MFC应用程序中使用CMFCListCtrl类,并且效果很好.但是,一旦将鼠标悬停在CMFCListCtrl控件的行上几秒钟,Microsoft就会发现自动行选择非常好....糟糕,看起来很烦人...

您是否知道如何防止此功能?

感谢您的帮助...

蒂埃里

电子邮件:thierry.marneffe@skynet.be
网址:www.tgmdev.be(Isanaki 2.6b,KillProcess 3.0,Genesis 1.2,Horses 2.0)

Hello

Env: VS2010 SP1, Win7

I use CMFCListCtrl class in MFC application and it works well. However, Microsoft find great ( I guess.. )to have automatic row selection once you left the mouse a few seconds over a row of the CMFCListCtrl control.... Ooops, looks more than annoying...

Do you have any idea how to prevent this feature ?

Thanks for your help ...

Thierry

EMail: thierry.marneffe@skynet.be
Web: www.tgmdev.be (Isanaki 2.6b, KillProcess 3.0, Genesis 1.2, Horses 2.0)

推荐答案

我相信您正在谈论的是热选择或悬停功能通过添加LVS_EX_TRACKSELECT样式启用.

摘自心爱的Microsoft文档.

在列表视图控件中启用热轨道选择.快捷轨道选择意味着当光标在某项上停留一段时间时,将自动选择该项目.可以使用LVM_SETHOVERTIME消息从默认系统设置更改延迟.此样式适用于列表视图控件的所有样式.您可以通过调用SystemParametersInfo来检查是否启用了热轨道选择.
I believe you are talking about hot select, or hover feature enabled by adding LVS_EX_TRACKSELECT style.

From beloved Microsoft documentation.

Enables hot-track selection in a list-view control. Hot track selection means that an item is automatically selected when the cursor remains over the item for a certain period of time. The delay can be changed from the default system setting with a LVM_SETHOVERTIME message. This style applies to all styles of list-view control. You can check whether hot-track selection is enabled by calling SystemParametersInfo.


这篇关于在CMFCListCtrl中自动选择的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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