CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: CheckBox

  1. #1
    Guest

    CheckBox

    I want to learn more about CheckBox.
    How can I to know when it's checked?
    Is there any especial function to get status of checked? What one?


  2. #2
    Join Date
    Jan 2000
    Location
    Salt Lake City, UT
    Posts
    72

    Re: CheckBox

    CheckRadioButton sets the checkmark for a button.
    IsDlgButtonChecked returns 0 or 1 if the button is unchecked or checked, respectively.
    GetCheckedRadioButton will give you the ID of the currently checked button if you give it the ID of the first and last radio button in the group.

    Free bonus tip #1: If you want to use more than one group of radio buttons, be sure to check the "Group" checkbox in the properties of the first button in each group.

    Free bonus tip #2: If you have more than one group of buttons, and later want to add an additional button to the first group, you're going to have trouble. You'll need to edit the resource file manually. If you don't know how to do that, then do this instead: Delete all the radio buttons from the first group, then add them all back in with the new one.

    Good luck!

    -dB

    --
    David Brady
    dbrady_at_acclaim.com
    Replace _at_ with @ to send e-mail
    "There's no sense being exact about something if you don't even know what you're talking about." -- John von Neumann

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured