CListCtrl - how to enable multiple selection

Niko Gamulin picture Niko Gamulin · Jan 21, 2009 · Viewed 9.4k times · Source

I am creating a MFC application for Windows Mobile and don't know how to enable multiple selection for List Control (CListCtrl). In properties panel Single Selection is set to False but still can't select multiple items.

Any idea?

Answer

Captain Sensible picture Captain Sensible · Jan 21, 2009

I have never targeted Windows Mobile but you might try the following:

list.ModifyStyle(LVS_SINGLESEL, 0);