The MFC CMFCRibbonCheckBox
class only supports IsChecked()
.
How do I change check status of ribbon check box in program code?
Is there way to set check status like CButton::SetCheck()
.
Set check of CMFCRibbonCheckBox
653 views Asked by Hill At
1
you can copy code from CMFCRibbonCmdUI::SetCheck. CMFCRibbonBaseElement::m_bIsPressed is a protected member so you need to expose it via a derived class. CMFCRibbonCmdUI has a backdoor to it through class friendship.