Solved

Full Row Selection in List Control?

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Expand macro to ask for filename column 8 37
countEvens challenge 2 111
haveThree challenge 22 121
Problem to App source 6 69
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…
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
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 use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

789 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