Click here to Skip to main content
15,901,122 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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)
Posted
Updated 3-Nov-11 19:04pm
v2

1 solution

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.
 
Share this answer
 
v2
Comments
michaelmel 4-Nov-11 1:09am    
Of course you can disable that (unwanted) feature/style be calling SetListStyle without LVS_EX_TRACKSELECT bit set - best place is to do this is in the OnInitialUpdate method.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900