Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

select a subitem in a CListCtrl box

Posted on 2001-08-08
5
Medium Priority
?
1,207 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 200 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

722 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