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
CEAdvButton class contains a
int elements (control IDs) and Disables/Enables the dialog elements in the list using its
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 will be able to help you in your hard work.
This article has no explicit license attached to it, but may contain usage terms in the article text or the download files themselves. If in doubt, please contact the author via the discussion board below.
A list of licenses authors might use can be found here.