Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

disabling all buttons in group

Status
Not open for further replies.

Maurader

Technical User
May 8, 2002
59
0
0
CA
how do i disable all buttons in a radio button group?
 
Disable a radio button by:

EnableWindow ( GetDlgItem ( hDlg, IDC_RADIO.. ), FALSE );


if there are many of them, I would do something like:

Code:
DWORD dwRadio[] = { IDC_RADIO1, IDC_RADIO2, IDC_..., 0 };
for ( DWORD i1 = 0; dwRadio[i1]; i1++ )
   { EnableWindow ( GetDlgItem ( hDlg, dwRadio[i1] ), FALSE ); }

Marcel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top