CListCtrl set multiselection
-
I've already got a multiselection CListCtrl in my application. How can I set the selection through code (example: multiselect rows 1,2 and 5)?
[VISUAL STUDIO 6.0] [MFC] [WIN98/2]
X| Bluute tette! X|
-
I've already got a multiselection CListCtrl in my application. How can I set the selection through code (example: multiselect rows 1,2 and 5)?
[VISUAL STUDIO 6.0] [MFC] [WIN98/2]
X| Bluute tette! X|
-
TRy CListCtrl::SetItemState, with SetItemState(nMyIndex, LVIS_SELECTED | LVIS_FOCUSED , LVIS_SELECTED | LVIS_FOCUSED); with nMyIndex = 1, 2 and 5
It works invisible, but it works :-) If the list looses it's focus, the selection is not shown on screen (but they remain selected though). How can I set the selection visible even when the focus is transfered to another control?
[VISUAL STUDIO 6.0] [MFC] [WIN98/2]
X| Bluute tette! X|
-
It works invisible, but it works :-) If the list looses it's focus, the selection is not shown on screen (but they remain selected though). How can I set the selection visible even when the focus is transfered to another control?
[VISUAL STUDIO 6.0] [MFC] [WIN98/2]
X| Bluute tette! X|
oeps ... :rolleyes: Show Selection Always!!! It's as easy.
[VISUAL STUDIO 6.0] [MFC] [WIN98/2]
X| Bluute tette! X|
-
oeps ... :rolleyes: Show Selection Always!!! It's as easy.
[VISUAL STUDIO 6.0] [MFC] [WIN98/2]
X| Bluute tette! X|
-
oeps ... :rolleyes: Show Selection Always!!! It's as easy.
[VISUAL STUDIO 6.0] [MFC] [WIN98/2]
X| Bluute tette! X|
Damn that's right ! I was wondering where it was... Just in the Styles property sheet of my control :). However I wonder how I can simply change the color to blue as if the list control still had the focus. Actually it greys the background. Earth > Europe > France > Lyon