Link to home
Start Free TrialLog in
Avatar of Choklander
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.
Avatar of Jaime Olivares
Jaime Olivares
Flag of Peru image

you just need to set the LVS_SINGLESEL flag for the control.
Avatar of Choklander
Choklander

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.
ASKER CERTIFIED SOLUTION
Avatar of Jaime Olivares
Jaime Olivares
Flag of Peru image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial