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. how can i unselecect files in a list view

how can i unselecect files in a list view

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
2 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.
  • V Offline
    V Offline
    vasu_sri
    wrote on last edited by
    #1

    hi sir,, iam displaying files on the list view ... like file1,file2 ...etc. after that iam providing multiple selection files on list view. that is ok.. no problem. then what problem is i would like unselect the files which files are selected. plz give me reply :sigh:

    Regards, Srinivas

    N 1 Reply Last reply
    0
    • V vasu_sri

      hi sir,, iam displaying files on the list view ... like file1,file2 ...etc. after that iam providing multiple selection files on list view. that is ok.. no problem. then what problem is i would like unselect the files which files are selected. plz give me reply :sigh:

      Regards, Srinivas

      N Offline
      N Offline
      Nibu babu thomas
      wrote on last edited by
      #2

      Try this...

      POSITION pstPos = GetFirstSelectedItemPosition();
      while( pstPos )
      {
      // Get selected item index
      const int nItem = GetNextSelectedItem( pstPos );

      // Deselect selected item
      SetItemState( nItem, 0, LVIS_SELECTED );
      }


      Nibu thomas A Developer Code must be written to be read, not by the compiler, but by another human being. http:\\nibuthomas.wordpress.com

      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