Introduction
This article demonstrates a CButton
derived class that is used to
enable or disable a set of controls with a single click. When the user clicks
the button the class iterates through the list of controls registered with the
button and toggles their enabled state.
How does it work
The CEAdvButton
class contains a CArray
of int
elements (
control IDs ) and Disables/Enables the dialog elements in the list using its SetCheck
() function..
How to use it
There only three functions:
void AddControlToList( int l_intID );
void ClearList();
void SetCheck( int nCheck );
Thank you for your attention, I hope this little class able to help you in the your hard work.