views:

882

answers:

2

Hi,

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?

Thanks!

A: 

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

list.ModifyStyle(LVS_SINGLESEL, 0);

Seventh Element
Doesn't work. Thanks anyway!
niko
Actually the problem was AlwaysShowSelection Property which has to be set TRUE - it works fine now!
niko
A: 

ModifyStyle method of CWnd base will work (see post from Diego) if you desire to do this programmatically OR you can define the attribute within the Resource Editor IF your placing the control on a dialog.

SAMills