Choklander
asked on
CListCtrl with single Cell Selection
I have a little problem.
I need to highlight only a single cell from a CListCtrl with report style.
I know I have to call DrawItem and make the control OwnerDrawFixed but for some reason I can not make the single cell selection work. It either does nothing or it selects only the first column item. I use most of the DrawItem code from the MS rowlist example.
I need to highlight only a single cell from a CListCtrl with report style.
I know I have to call DrawItem and make the control OwnerDrawFixed but for some reason I can not make the single cell selection work. It either does nothing or it selects only the first column item. I use most of the DrawItem code from the MS rowlist example.
you just need to set the LVS_SINGLESEL flag for the control.
ASKER
Sorry I guess I didn't explain the entire problem.
I need to have a single Cell highlighted. If I click on a cell from the second column only that cell should be highlighted. The cell from the first column of that same row must not be highlighted.
Like Excel.
I need to have a single Cell highlighted. If I click on a cell from the second column only that cell should be highlighted. The cell from the first column of that same row must not be highlighted.
Like Excel.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.