• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 380
  • Last Modified:

disable a whole button radio group

Hi, i have two groups of radio buttons. I want to disable one of them when a certain button is pressed, but i can only disable one. Could anybody tell how to disble the rest of them? Thanks!
0
pescatera
Asked:
pescatera
1 Solution
 
AlexFMCommented:
GetDlgItem(IDC_RADIO1)->EnabelWindow(FALSE);
GetDlgItem(IDC_RADIO2)->EnabelWindow(FALSE);
GetDlgItem(IDC_RADIO3)->EnabelWindow(FALSE);
...

If resource ID values are contiguous, you can use a loop.
0
 
pescateraAuthor Commented:
Thanks a lot!
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now