Solved

How to disable a CButton (radio button)?

Posted on 2004-04-15
3
796 Views
Last Modified: 2010-07-27
How to disable a CButton (radio button)?
in runtime

i couldn find a funktion like CButtbin m_R1.disable();
0
Comment
Question by:dkloeck
  • 2
3 Comments
 
LVL 7

Expert Comment

by:leflon
ID: 10837173
hi dkloeck,
if m_R1 is your CButton (or derived) you can use m_R1->Enable(FALSE) to disable and m_R1->Enable() to enable the button.

hth
leflon
0
 
LVL 4

Accepted Solution

by:
bkfirebird earned 20 total points
ID: 10838036
it would be m_R1.EnableWindow (FALSE)
0
 
LVL 7

Expert Comment

by:leflon
ID: 10839850
oopps,
too used working with pointers :)

bkfirebird is right

if
CButton m_R1;        // which ever Button you use
m_R1.Enable(...);

or
CButton* m_R1;
// assign some Button to pointer
m_R1->Enable(...);

leflon
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

747 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

7 Experts available now in Live!

Get 1:1 Help Now