Solved

disable a whole button radio group

Posted on 2003-10-29
4
370 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Folder Comparison 12 55
How do you programatically show and hide the Windows 10 On-Screen-Keyboard? 3 922
Thin secure Windows 10 5 107
I could not set window to top 4 43
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

733 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