Solved

Full Row Selection in List Control?

Posted on 1998-09-14
3
336 Views
Last Modified: 2013-11-20
Hi,
I used a List Control to display different types of data.
Now I can get one row of data by clicking the mouse at
the first column of the row.
Can I get one row of data by clicking the mouse at the
other subitems of that row instead of the first items.

Thanks.
0
Comment
Question by:ee_lcpaa
3 Comments
 

Expert Comment

by:surenechan
ID: 1322132
Go http://www.codeguru.com/listview/index.shtml,
 there 's a reference code and guide for you .
Also in this site there 're many reference concerning List View Control,feel free to have a look.
0
 
LVL 2

Accepted Solution

by:
jstolan earned 30 total points
ID: 1322133
The code guru has some great stuff.  However, the short answer to your question is that you can't select rows by clicking on the subitems of a standard list control.  You'll have to customize it if you really need that functionality.
0
 
LVL 4

Expert Comment

by:piano_boxer
ID: 1322134
ListView_SetExtendedListViewStyle(m_wndList.m_hWnd, LVS_EX_FULLROWSELECT);

(Works with comctl32.dll version 4.70 or higher)
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Error on moodle after upgrade 3 130
countEvens challenge 2 98
sum67 challenge 35 97
MaxSpan challenge 9 95
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

776 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