This article was contributed by Matthew Bells.
This code is an enhancement to the code by Zafir Anjum and Mark Findlay which provides full row highlighting and TitleTips enhancements for the CListCtrl. If you've noticed in MS-Dev, the TittleTips show highlighting. This code is an extension which has TitleTips which can change colors as well as performance enhancements to reduce flickering.
Another useful addition is notifying the parent window of the CListCtrl when the selection has changed - useful if you want to disable buttons if options are not available. For an example, look in the control panel network services (WinNT); the "Properties" buttons will disable if the selection does not have properties. This is done by sending a notification to the parent window. Since there have been many changes, i have attached the full source. Download files
- Full Row Selection is an Extended Style for a CListCtrl - John (2004/01/27)
- Bug whith tooltip of subitem. - Sergeev (2003/03/26)
- Keypress bug: Not filtering control keys - Jim Adam (2003/03/19)
- Titletip text alignment fix - Philip J. Ludington (1999/12/09)
- bug found when press horizontal scroll bar - shuwei hao (1999/05/30)
- Bug when dynamically creating control - Eberhard Beilharz (1999/05/28)
- How to change background color of that listctrl - Ali (1999/04/01)
- Enhancement Request - Bryan Wilkerson (1999/02/19)
- Another bug in the code - Alex (1998/11/27)
- Another bug - Harald Dietewich (1998/10/02)
- Fixing bug in tooltip text position - Harald Dietewich (1998/09/24)