Controling RadioGroup

This is a discussion on Controling RadioGroup within the Windows Programming forums, part of the Platform Specific Boards category; I'm writeing a MFC program and I have three radio buttons in a group. I want to initialize the one( ...

  1. #1
    Registered User
    Join Date
    Sep 2003
    Posts
    87

    Controling RadioGroup

    I'm writeing a MFC program and I have three radio buttons in a group. I want to initialize the one( in the OnInitDialog() function) to be set. I don't know what function to use.
    Last edited by Gravedigga; 01-07-2004 at 02:27 PM.

  2. #2
    Registered User
    Join Date
    Dec 2002
    Posts
    35
    CButton::SetCheck
    void SetCheck( int nCheck );

    Parameters

    nCheck

    Specifies the check state. This parameter can be one of the following:

    Value Meaning
    0 Set the button state to unchecked.
    1 Set the button state to checked.
    2 Set the button state to indeterminate. This value can be used only if the button has the BS_3STATE or BS_AUTO3STATE style.


    Remarks

    Sets or resets the check state of a radio button or check box. This member function has no effect on a pushbutton.
    Want to learn? Then try to teach...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Controling a process's audio output
    By Gravedigga in forum Windows Programming
    Replies: 0
    Last Post: 05-13-2005, 10:44 AM
  2. Controling the cursor?
    By Queatrix in forum Windows Programming
    Replies: 2
    Last Post: 05-10-2005, 12:18 PM
  3. Multiple Trackbars and controling them both
    By AtomRiot in forum Windows Programming
    Replies: 2
    Last Post: 11-28-2004, 09:07 PM
  4. putting and controling radio group
    By Gravedigga in forum Windows Programming
    Replies: 1
    Last Post: 09-24-2003, 07:20 AM
  5. controling another program
    By Unregistered in forum Windows Programming
    Replies: 19
    Last Post: 07-11-2002, 03:41 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21