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. Radio controls!!

Radio controls!!

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
5 Posts 5 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
    Rickard Andersson20
    wrote on last edited by
    #1

    (I want to know everything about how to handle them!!) How to use the CheckRadioButton(..) method? I don't understand what they mean in MSDN Libray with the parameters! :( But if I say how I want to use them: I want to set the radio button to be checked, and I want to know if the radio is checked!! HEEEELP!! ------------------------------ CodeCracker - That's me! :) ------------------------------

    M N X F 4 Replies Last reply
    0
    • R Rickard Andersson20

      (I want to know everything about how to handle them!!) How to use the CheckRadioButton(..) method? I don't understand what they mean in MSDN Libray with the parameters! :( But if I say how I want to use them: I want to set the radio button to be checked, and I want to know if the radio is checked!! HEEEELP!! ------------------------------ CodeCracker - That's me! :) ------------------------------

      M Offline
      M Offline
      Michael P Butler
      wrote on last edited by
      #2

      CheckRadioButton is fairly simple to use. The first parameter is the first Radio button ID in the group of Radio buttons. If you had three radio buttons in a group, IDC_CHOICE1,IDC_CHOICE2,IDC_CHOICE3 then the first parameter would be IDC_CHOICE1. The second parameter would be the last one in the range IDC_CHOICE3. The last parameter is the id of the button that you want checked. You can use IsDlgButtonChecked to find the selected button, hope this helps, Michael :-)

      1 Reply Last reply
      0
      • R Rickard Andersson20

        (I want to know everything about how to handle them!!) How to use the CheckRadioButton(..) method? I don't understand what they mean in MSDN Libray with the parameters! :( But if I say how I want to use them: I want to set the radio button to be checked, and I want to know if the radio is checked!! HEEEELP!! ------------------------------ CodeCracker - That's me! :) ------------------------------

        N Offline
        N Offline
        Nish Nishant
        wrote on last edited by
        #3

        look up the following in MSDN CButton::SetCheck CButton::GetCheck Nish Sonork ID 100.9786 voidmain
        www.busterboy.org
        Nish is a BIG fan of Goran Ivanisevic

        1 Reply Last reply
        0
        • R Rickard Andersson20

          (I want to know everything about how to handle them!!) How to use the CheckRadioButton(..) method? I don't understand what they mean in MSDN Libray with the parameters! :( But if I say how I want to use them: I want to set the radio button to be checked, and I want to know if the radio is checked!! HEEEELP!! ------------------------------ CodeCracker - That's me! :) ------------------------------

          X Offline
          X Offline
          XAlien
          wrote on last edited by
          #4

          Hi, to set a radiocontrol checked: m_RadioName.SetCheck(1); value 1 = checked value 0 = unchecked if you want to test the status: if (m_RadioName.GetCheck()==1){...}

          1 Reply Last reply
          0
          • R Rickard Andersson20

            (I want to know everything about how to handle them!!) How to use the CheckRadioButton(..) method? I don't understand what they mean in MSDN Libray with the parameters! :( But if I say how I want to use them: I want to set the radio button to be checked, and I want to know if the radio is checked!! HEEEELP!! ------------------------------ CodeCracker - That's me! :) ------------------------------

            F Offline
            F Offline
            Fred M
            wrote on last edited by
            #5

            Like this Use CheckRadioButton(hDlg,IDC_RADIO1(id checked),IDC_RADIO1(start group),IDC_RARIO5(end group)) When you want to know if the button checked use IsDlgButtonChecked(hDlg,IDC_RADIO1) Bye.

            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