Thread: Disabling radio buttons

  1. #1
    Registered User
    Join Date
    Aug 2001
    Posts
    9

    Post Disabling radio buttons

    Is there a method to disable a radio button and grey ouy its text

  2. #2
    Registered User
    Join Date
    Aug 2001
    Posts
    72
    here is an example using WinAPI:

    ...
    HWND hCtl = GetDlgItem(hDlg, IDC_RADIO1);
    EnableWindow(hCtl, FALSE);

  3. #3
    Registered User ski6ski's Avatar
    Join Date
    Aug 2001
    Posts
    133
    Or using MFC (Dialogs)
    GetDlgItem(IDC_RADIO1)->EnableWindow(FALSE);
    C++ Is Powerful
    I use C++
    There fore I am Powerful

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. OwnerDrawn Radio Buttons?
    By Devil Panther in forum Windows Programming
    Replies: 0
    Last Post: 02-11-2006, 11:02 AM
  2. Radio Buttons in Visual C++ 6
    By Ripper1 in forum Windows Programming
    Replies: 22
    Last Post: 05-16-2003, 07:54 AM
  3. create radio buttons
    By bluecoder in forum Windows Programming
    Replies: 10
    Last Post: 05-14-2002, 12:01 AM
  4. radio buttons
    By RonShel in forum Windows Programming
    Replies: 5
    Last Post: 09-01-2001, 12:00 PM
  5. Grouping radio buttons
    By Bazz in forum Windows Programming
    Replies: 1
    Last Post: 08-28-2001, 07:15 AM