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. Columns with checkboxes

Columns with checkboxes

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

    Hello, I have a question concerning VC++ and columns and checkboxes. This I'm assuming is a common hurdle to jump when building a GUI. I want to to have a graphical interface that shows a list of columns. The first column, describes the item the following columns could A,B,C etc but are "checkbox" columns that will profile the item in the first column. I went down the merry path of looking into CListControl in MFC that has a column and by setting the style to CHECKBOX you can have a single item with one checkbox, nice to know. Not what I need. Datagrid looks like that is what I need, but I dont see this in MFC. Can somebody point me to an example and even tell me if this is what I need. Thanks in advance, Garyc

    CPalliniC D R 3 Replies Last reply
    0
    • B burslem2001

      Hello, I have a question concerning VC++ and columns and checkboxes. This I'm assuming is a common hurdle to jump when building a GUI. I want to to have a graphical interface that shows a list of columns. The first column, describes the item the following columns could A,B,C etc but are "checkbox" columns that will profile the item in the first column. I went down the merry path of looking into CListControl in MFC that has a column and by setting the style to CHECKBOX you can have a single item with one checkbox, nice to know. Not what I need. Datagrid looks like that is what I need, but I dont see this in MFC. Can somebody point me to an example and even tell me if this is what I need. Thanks in advance, Garyc

      CPalliniC Offline
      CPalliniC Offline
      CPallini
      wrote on last edited by
      #2

      Have a look at this article [^]. :)

      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
      This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
      [My articles]

      In testa che avete, signor di Ceprano?

      B 1 Reply Last reply
      0
      • CPalliniC CPallini

        Have a look at this article [^]. :)

        If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
        This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
        [My articles]

        B Offline
        B Offline
        burslem2001
        wrote on last edited by
        #3

        Much appreciated. I will have a gander at this.

        1 Reply Last reply
        0
        • B burslem2001

          Hello, I have a question concerning VC++ and columns and checkboxes. This I'm assuming is a common hurdle to jump when building a GUI. I want to to have a graphical interface that shows a list of columns. The first column, describes the item the following columns could A,B,C etc but are "checkbox" columns that will profile the item in the first column. I went down the merry path of looking into CListControl in MFC that has a column and by setting the style to CHECKBOX you can have a single item with one checkbox, nice to know. Not what I need. Datagrid looks like that is what I need, but I dont see this in MFC. Can somebody point me to an example and even tell me if this is what I need. Thanks in advance, Garyc

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

          I've used XListCtrl, from here at CP, many times.

          "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

          "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

          1 Reply Last reply
          0
          • B burslem2001

            Hello, I have a question concerning VC++ and columns and checkboxes. This I'm assuming is a common hurdle to jump when building a GUI. I want to to have a graphical interface that shows a list of columns. The first column, describes the item the following columns could A,B,C etc but are "checkbox" columns that will profile the item in the first column. I went down the merry path of looking into CListControl in MFC that has a column and by setting the style to CHECKBOX you can have a single item with one checkbox, nice to know. Not what I need. Datagrid looks like that is what I need, but I dont see this in MFC. Can somebody point me to an example and even tell me if this is what I need. Thanks in advance, Garyc

            R Offline
            R Offline
            Rolf Kristensen
            wrote on last edited by
            #5

            You can use the subitem-image to display the checkbox. Just copy the state-images to the official image-list, and react to mouse-click on the subitem-image to change the checkbox. I have implemented this on CGridListCtrlEx - Grid Control Based on CListCtrl[^]

            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