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. ATL / WTL / STL
  4. how to implement CButton as CListbox item

how to implement CButton as CListbox item

Scheduled Pinned Locked Moved ATL / WTL / STL
tutorialquestion
4 Posts 3 Posters 6 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
    rtischer8277
    wrote on last edited by
    #1

    I see many code projects that enhance the CListBox control, but none that lets each item be another control, like fx CButton. How would one implement that?

    C L 2 Replies Last reply
    0
    • R rtischer8277

      I see many code projects that enhance the CListBox control, but none that lets each item be another control, like fx CButton. How would one implement that?

      C Offline
      C Offline
      CHill60
      wrote on last edited by
      #2

      This article uses radio buttons as items - does that help? CRadioListBox: A ListBox with Radio Buttons (MFC version)[^]

      R 1 Reply Last reply
      0
      • C CHill60

        This article uses radio buttons as items - does that help? CRadioListBox: A ListBox with Radio Buttons (MFC version)[^]

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

        The link draws radio buttons, but doesn't really use MFC buttons. I am working on a solution that drops the need for CListBox.

        1 Reply Last reply
        0
        • R rtischer8277

          I see many code projects that enhance the CListBox control, but none that lets each item be another control, like fx CButton. How would one implement that?

          L Offline
          L Offline
          longjmp
          wrote on last edited by
          #4

          Create some button controls as listbox's children window, put its on the foreground of the listbox, you have to process some messages to change the control's data, coordinates, etc.

          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