Thread: Default checking of radio button in a group box

  1. #1
    Registered User
    Join Date
    Oct 2001
    Posts
    17

    Default checking of radio button in a group box

    Sir,


    On a window I have a group box which contains two radio buttons.

    what I require is that when my window opens one of the radio button in that group box should be in the checked state.

    How can I do so.

  2. #2
    Registered User
    Join Date
    Aug 2001
    Posts
    411
    Look in the source file, find where the associated variable is declared, and set its value to 0 or 1, it will be -1 by default.

  3. #3
    Registered User
    Join Date
    Oct 2001
    Posts
    17
    >Look in the source file, find where the associated variable is declared, and set its value to 0 or 1, it will be -1 by default.

    The associated member variable is declared as
    CButton m_anipmode;

    where m_anipmode is the member variable for Group box. Also when I try to make a member variable for the radio buttons using ClassWizard, I am not able to do so.

    Where am I suppossed to set the value as 0 or 1.


    juhi

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM
  2. moving a dialog box and making a button a bitmap
    By Unregistered in forum Windows Programming
    Replies: 5
    Last Post: 05-22-2002, 04:38 AM
  3. Dialog Boxes - Radio Button mischief
    By MrWizard in forum Windows Programming
    Replies: 2
    Last Post: 05-15-2002, 08:06 PM
  4. Radio button linked to text box
    By J_Bravo in forum Windows Programming
    Replies: 9
    Last Post: 05-07-2002, 10:15 PM
  5. Default checking of radio button in a group box
    By juhigarg in forum Windows Programming
    Replies: 3
    Last Post: 11-08-2001, 12:25 AM