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. Use of Multiple Check boxes in MFC

Use of Multiple Check boxes in MFC

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

    hi, i am using multiple Check Boxes in my GUI and i wanted that only one gets checked at a time i.e when one Check Box gets checked by user the others should automatically get unchecked. i can't use Radio Buttons since i don't find its "Auto" check and uncheck from "Behavior" in its "Properties" in vs2008. any help in this regards please. Regards Jawad

    S D 2 Replies Last reply
    0
    • J jawadali477

      hi, i am using multiple Check Boxes in my GUI and i wanted that only one gets checked at a time i.e when one Check Box gets checked by user the others should automatically get unchecked. i can't use Radio Buttons since i don't find its "Auto" check and uncheck from "Behavior" in its "Properties" in vs2008. any help in this regards please. Regards Jawad

      S Offline
      S Offline
      sanjaylk
      wrote on last edited by
      #2

      OnBnClickedCheckXXX() -> uncheck all checkboxes programtically and check "CheckBoxXXX" . Or write new function and pass control handle of check box to be checked, then inside that function uncheck all , then check passed check box.

      J 1 Reply Last reply
      0
      • S sanjaylk

        OnBnClickedCheckXXX() -> uncheck all checkboxes programtically and check "CheckBoxXXX" . Or write new function and pass control handle of check box to be checked, then inside that function uncheck all , then check passed check box.

        J Offline
        J Offline
        jawadali477
        wrote on last edited by
        #3

        thank you sanjaylk. it really helped. Regards Jawad

        1 Reply Last reply
        0
        • J jawadali477

          hi, i am using multiple Check Boxes in my GUI and i wanted that only one gets checked at a time i.e when one Check Box gets checked by user the others should automatically get unchecked. i can't use Radio Buttons since i don't find its "Auto" check and uncheck from "Behavior" in its "Properties" in vs2008. any help in this regards please. Regards Jawad

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

          I am using VS2008 and see Auto behavior for checkboxes. See here.

          "One man's wage rise is another man's price increase." - Harold Wilson

          "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

          "Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous

          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