Solved

select a subitem in a CListCtrl box

Posted on 2001-08-08
5
1,179 Views
Last Modified: 2013-11-20
Hi, How can I have the select functionality for Subitems in CListCtrl box in Report mode. It seems that only the Item can be selected and be highlighted, but not subitem. Is there any way I can get around it? Thanks.
0
Comment
Question by:su168
5 Comments
 
LVL 12

Expert Comment

by:migel
ID: 6363955
Hi!
for ComCtrl32 version above 4.72
you can use extended style to select entire row:
m_wndProblemsList.SendMessage(LVM_SETEXTENDEDLISTVIEWSTYLE,
LVS_EX_FULLROWSELECT , //dwMask
          LVS_EX_FULLROWSELECT); //ApplayStyle
to more older versions you have to handle custom draw mechaism.
0
 
LVL 4

Expert Comment

by:IainHere
ID: 6363976
migel's answer allows you to select anywhere in the row, but (from memory) does not allow you to select subitems - if that is what you're after.  I solved this by looking at the code for some of the controls in

www.codeguru.com

I think there is an editbox example where you select (for example) a cell in the second row and it pops up an edit box at the correct location.
0
 

Author Comment

by:su168
ID: 6364558
Hi, LainHere,

Could you tell me where is that code located? It seems like you solved the problem. Besides pup-up the edit box, could you still highlight the subitem only? Thanks.

su168
0
 
LVL 12

Accepted Solution

by:
migel earned 50 total points
ID: 6365274
0
 
LVL 23

Expert Comment

by:Roshan Davis
ID: 9521150
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Answered by: migel

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Roshan Davis
EE Cleanup Volunteer
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
Expand data scrubbing tool 13 32
unable to delete all specified values regedit 38 278
maxBlock challenge 30 111
Updating statistics with error notification email in SQL server 4 73
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: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
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.

910 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