Virtual Developer Workshop: Containerized Development with Docker
Environment: VC6, NT4 SP4,
The following public function is available for CMacButton:
- void SetBold(BOOL bBold = TRUE)
- BOOL GetBold()
The following public functions are available for CMacCheckBox and CMacRadioButton:
- void SetCheck(int nCheck)
- int GetCheck()
Follow these steps to add a CMacXXX button to a dialog:
- Add the desired files to your project.
- Add the appropriate include to the header file of your dialog class.
- Add checkboxes/radio buttons/standard buttons to your dialog in the resource editor.
- Use ClassWizard to add a member variable of type CMacButton, CMacCheckBox, or CMacRadioButton for the corresponding controls you just added. If the CMacXXX classes are not in the Variable Type list, choose CButton, and manually change the types in the header file of your dialog class.
To do list:
- Add support for bitmaps on buttons
- Add support for horizontal and vertical alignment
- Add support for push-like check boxes and radio buttons
- Add support for tri-state check boxes and radio buttons
DownloadsDownload demo project - 34 Kb
Download source - 14 Kb