Solved

select a subitem in a CListCtrl box

Posted on 2001-08-08
5
1,176 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Login Script to Copy Folders 12 22
Rewrite URL With Encoded Characters 6 64
MaxSpan challenge 9 67
matchUp  challenge 9 72
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…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

746 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

11 Experts available now in Live!

Get 1:1 Help Now