How to disable a CButton (radio button)?

How to disable a CButton (radio button)?
in runtime

i couldn find a funktion like CButtbin m_R1.disable();
LVL 10
dkloeckAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
bkfirebirdConnect With a Mentor Commented:
it would be m_R1.EnableWindow (FALSE)
0
 
leflonCommented:
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
 
leflonCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.