Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Multiple Selection in ListView.

Multiple Selection in ListView.

Scheduled Pinned Locked Moved C / C++ / MFC
csscomtoolsquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sameerkumar Namdeo
    wrote on last edited by
    #1

    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.

    My Blog.
    My codeproject Articles.

    R 1 Reply Last reply
    0
    • S Sameerkumar Namdeo

      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.

      My Blog.
      My codeproject Articles.

      R Offline
      R Offline
      Roger Broomfield
      wrote on last edited by
      #2

      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.

      S 1 Reply Last reply
      0
      • R Roger Broomfield

        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.

        S Offline
        S Offline
        Sameerkumar Namdeo
        wrote on last edited by
        #3

        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 Blog.
        My codeproject Articles.

        R 1 Reply Last reply
        0
        • S Sameerkumar Namdeo

          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 Blog.
          My codeproject Articles.

          R Offline
          R Offline
          Roger Broomfield
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups