Solved

How to disable a CButton (radio button)?

Posted on 2004-04-15
3
802 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

770 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