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. Capturing check/uncheck in checkbox in listcontrol

Capturing check/uncheck in checkbox in listcontrol

Scheduled Pinned Locked Moved C / C++ / MFC
help
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.
  • I Offline
    I Offline
    itkid
    wrote on last edited by
    #1

    Hi, I am using CListControl in Dialog and one of the column is checkbox.How would I capture change (check/uncheck) in checkbox in any of the row.Thanks for help. Regards

    N 1 Reply Last reply
    0
    • I itkid

      Hi, I am using CListControl in Dialog and one of the column is checkbox.How would I capture change (check/uncheck) in checkbox in any of the row.Thanks for help. Regards

      N Offline
      N Offline
      Naveen
      wrote on last edited by
      #2

      itkid wrote:

      I am using CListControl in Dialog and one of the column is checkbox.

      Did you actually put a check box in each row of that coloumn or just an ICON of check/uncheck marks?

      nave [My Articles] [My Blog]

      I 1 Reply Last reply
      0
      • N Naveen

        itkid wrote:

        I am using CListControl in Dialog and one of the column is checkbox.

        Did you actually put a check box in each row of that coloumn or just an ICON of check/uncheck marks?

        nave [My Articles] [My Blog]

        I Offline
        I Offline
        itkid
        wrote on last edited by
        #3

        conditional checkbox is present in few row. I just want to capture any change in any checkbox.

        N 1 Reply Last reply
        0
        • I itkid

          conditional checkbox is present in few row. I just want to capture any change in any checkbox.

          N Offline
          N Offline
          Naveen
          wrote on last edited by
          #4

          I hope you are showing the check box with LVS_EX_CHECKBOXES. If so, you will get the LVN_ITEMCHANGED notification when user checks or unchecks the check box. you can identify the state of check box by getting the state image of the item. From MSDN: "State image 1 is the unchecked box, and state image 2 is the checked box. Setting the state image to zero removes the check box."

          nave [My Articles] [My Blog]

          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