Solved

Full Row Selection in List Control?

Posted on 1998-09-14
3
334 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ADO Memory leak with DELPHI 2007 37 170
Add content to output file 4 62
NotAlone Challenge 20 79
wordcount challenge 11 106
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

911 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now