Login | Register   
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Design Patterns
Expertise: Beginner
May 23, 1999

Visual C++ Check/Radio Buttons

Question:
How does one go about disabling/enabling buttons and check boxes in dialogs based on the state of other buttons or check boxes? The controls in question are of the MFC class CButton and are created as part of a CDialog object.

Answer:
I would write a common routine that disables/enables all the controls based on various criteria. Then, call this routine from the event handlers for any controls that change it.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap