Solved

How to disable a CButton (radio button)?

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Find Visual Studio Tools 2 111
designing in object programming 12 94
How do i run a c++ file? 15 46
How do I get Window Title of all opened process? 4 14
In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall‚Ķ
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
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.

829 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