Solved

disable a whole button radio group

Posted on 2003-10-29
4
363 Views
Last Modified: 2013-11-20
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
Comment
Question by:pescatera
4 Comments
 
LVL 48

Accepted Solution

by:
AlexFM earned 50 total points
ID: 9643114
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
 
LVL 1

Author Comment

by:pescatera
ID: 9643147
Thanks a lot!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Decoding 32 bit binary streams 6 37
Windows Drag & Drop Location 2 94
if loop in java 3 130
countEvens challenge 2 78
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now