Solved

select a subitem in a CListCtrl box

Posted on 2001-08-08
5
1,195 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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
Host to IP 7 84
ORA-01403: no data found 43 116
string initialization in java 11 122
zeroMAx challenge 20 135
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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 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.

751 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