dkloeck
asked on
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();
in runtime
i couldn find a funktion like CButtbin m_R1.disable();
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
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
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