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 to disable list view items?

How to disable list view items?

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
4 Posts 3 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.
  • R Offline
    R Offline
    Roozbeh69
    wrote on last edited by
    #1

    Hi everybody, I want to disable a list view item. I know that I should use SetItemState method, but I don't know how. thank you in advance.

    M D 2 Replies Last reply
    0
    • R Roozbeh69

      Hi everybody, I want to disable a list view item. I know that I should use SetItemState method, but I don't know how. thank you in advance.

      M Offline
      M Offline
      Michael Dunn
      wrote on last edited by
      #2

      Disabled how? You can set the LVIS_CUT style so icon is grayed, and use custom draw to change the text color to gray. If you mean disabled as in not selectable, that feature isn't built in to the control.

      --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ VB > soccer

      R 1 Reply Last reply
      0
      • M Michael Dunn

        Disabled how? You can set the LVIS_CUT style so icon is grayed, and use custom draw to change the text color to gray. If you mean disabled as in not selectable, that feature isn't built in to the control.

        --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ VB > soccer

        R Offline
        R Offline
        Roozbeh69
        wrote on last edited by
        #3

        Hi Michael, Thank you so much. That's very kind of you. I use your articles before and they help me so much. I wish best things in your life. yours sincerely, Roozbeh.

        1 Reply Last reply
        0
        • R Roozbeh69

          Hi everybody, I want to disable a list view item. I know that I should use SetItemState method, but I don't know how. thank you in advance.

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          Roozbeh69 wrote:

          I want to disable a list view item.

          Disable or deselect? :confused:


          "The largest fire starts but with the smallest spark." - David Crow

          "Judge not by the eye but by the heart." - Native American Proverb

          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