How to make CListCtrl selections have CListBox behavior??
I'm using the report view style in a CListCtrl.
I need it to operate like a CListBox in the way selections of items are made.
The CListBox allows me to click on each item WITHOUT deselecting all the other items. I don't want the user to have to hold ctrl or shift down to maintain the previous selections in the CListCtrl.
Also, I don't need the list control if there is another way I can have a report view. I have 3 columns of data to display.
Is there any way to do this?
Re: How to make CListCtrl selections have CListBox behavior??
Use PreTranslateMessage() for the list control and individually turn the selection on and off
Sally
Re: How to make CListCtrl selections have CListBox behavior??
I read up on PreTranslateMessage... I have a dialog bar in my MainFrame that contains the list control.
Should I override PreTranslateMessage in MainFrame and just check which window handle the message occured in?
After I handle things the way I want, should I just return non-zero so that any normal processing of the mouseclick will be skipped?
Thanks,
-V-
I got it to work - thanks!
If anyone wants the code, let me know.
Re: I got it to work - thanks!
would be interesting to see what you did?
sally