Multiple Selection in ListView.
-
Hi, Have created a custom control from ListView ctrl for displaying images in grid manner. Images are displayed in grid manner. 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k now when i press SHIFT key and click item 1 and continue to press SHIFT key and then click item d then the items are selected in following columnwise manner 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k this is not as per standard windows explorer behavior which selects items row wise 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k please suggest how selection can be made rowwise by SHIFT + click Any thing which i should specify in style of the ctrl? thanks.
-
Hi, Have created a custom control from ListView ctrl for displaying images in grid manner. Images are displayed in grid manner. 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k now when i press SHIFT key and click item 1 and continue to press SHIFT key and then click item d then the items are selected in following columnwise manner 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k this is not as per standard windows explorer behavior which selects items row wise 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k please suggest how selection can be made rowwise by SHIFT + click Any thing which i should specify in style of the ctrl? thanks.
What you are observing is the default behaviour of windows explorer when it is in Tiles view mode. The behaviour you are expecting is the behaviour of windows explorer in Thumbnails, Icons, or List view modes. So I suggest you take your ListView out of Tile view mode and use Icon or List view mode.
-
What you are observing is the default behaviour of windows explorer when it is in Tiles view mode. The behaviour you are expecting is the behaviour of windows explorer in Thumbnails, Icons, or List view modes. So I suggest you take your ListView out of Tile view mode and use Icon or List view mode.
even in tiles view the selection happens row wise. am trying for rowwise selection but getting column wise selection what style i should specify in ListView_SetExtendedListViewStyle()? or use any other function..
-
even in tiles view the selection happens row wise. am trying for rowwise selection but getting column wise selection what style i should specify in ListView_SetExtendedListViewStyle()? or use any other function..
My apologies, my initial observations were incorrect. All I can suggest is to try using other views to the one you are using at the moment, use LVM_SETVIEW to change the view.