Solved

Full Row Selection in List Control?

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

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: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

708 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

17 Experts available now in Live!

Get 1:1 Help Now