Posted on 1999-10-27
Medium Priority
Last Modified: 2013-11-20
I have a list control with 3 columns.
I can only select by clicking the first
column. I need to be able to do this
for any column and show/keep the entire row blue (selected).
Question by:has
1 Comment

Accepted Solution

jzhang100 earned 200 total points
ID: 2163742
You can accomplish this by set the style of your list control. The following codes should make it work.

// Set the style of the EventListView.
DWORD dwStyle = ListView_GetExtendedListViewStyle(m_ctrlEventList.m_hWnd);
ListView_SetExtendedListViewStyle(m_ctrlEventList.m_hWnd, dwStyle);

where m_ctrlEventList is my CListCtrl.


Featured Post

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

Question has a verified solution.

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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
The Relationships Diagram is a good way to get an overall view of what a database is keeping track of. It is also where relationships are defined. A relationship specifies how two tables connect to each other. As you build tables in Microsoft Ac…
Suggested Courses

601 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