Solved

Highlighting ENTIRE line of CListCtrl

Posted on 1997-10-27
5
734 Views
Last Modified: 2013-11-20
I've already extended CListCtrl to automatically handle sorting (asc & desc) without the parent's involvement. The last step to make this thing work like a "record browser" is to have the entire row highlight when an item is selected.

Is there an easy (i.e. Most Painless) way of doing this? Does Onwer-draw set this up for the most part?

I prefer to use the derived class to do this.
0
Comment
Question by:llorenz
5 Comments
 
LVL 5

Expert Comment

by:yonat
ID: 1308901
You can use the ROWLIST sample that comes with MS Developer Studio. It implements a class CListViewEx derived from CListView, that uses owner drawn list control.
0
 
LVL 7

Accepted Solution

by:
galkin earned 100 total points
ID: 1308902
You can add LVS_EX_FULLROWSELECT style bit to your list view extended style and entire row will be selected. This is done by sending message to your list view ::SendMessage(hwndYouListView,LVM_SETEXTENDEDLISTVIEWSTYLE, 0, (LPARAM)LVS_EX_FULLROWSELECT). Remember this feature is availible in comctl32.dll version 4.70 and above.
0
 
LVL 10

Expert Comment

by:RONSLOW
ID: 1308903
NOTE: You CAN LEGALLY update your (or your cusomters) Win95 machine to V4.70 of COMCTL32.DLL - but you must get COM32UPD.EXE from MS to do this (it also updates some related DLL's)

You CANNOT redistribute COMCTL32.DLL by itself - only as part of the upgrade exe.

PS: If you don't want to rely on the new version - have a look at http://www.codeguru.com for source code on full row select (and lots of other goodies)

0
 

Author Comment

by:llorenz
ID: 1308904
Thanks. I wasn't aware of the 4.70 update, and I've been holding off from using IE 4.0 (Co-worker's machine is a DOG running it). I still might go the route of the code on CodeGuru, even with the messy owner-draw code, to make the install easier; but in the meantime, I am downloading the update (forget trying to navigate MS's web site, though... when is the last time the site actually worked correctly and quickly? I had to get it off of a mirror site!)
0
 

Author Comment

by:llorenz
ID: 1308905
COM32UPD.EXE didn't do the trick. I integrated the code at www.codeguru.com and that handled the problem quite nicely.
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
bobThere java chalenge 45 92
Looking for a specific application/software 2 110
how to monitor remote shell execution on linux 9 101
sumDigits challenge 9 153
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

823 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question