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
Solved

select a subitem in a CListCtrl box

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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
pre4 challenge 19 104
Annoying "thing" blocks my view 4 115
Can not remove SSL certificate on iPhone 6 - iOS10.2 12 846
how to use laptop or pad camera in vb.net windows application 2 86
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
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.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

860 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