This is some Microsoft code in an example program: CMFCRibbonColorButton* pBtn1 = new CMFCRibbonColorButton(ID_RIBBON_CBTN_1, _T(“&Simple”), TRUE, 0, 0); pBtn1->SetAlwaysLargeImage(); pBtn1->SetDefaultCommand(FALSE); pPanel1->Add(pBtn1); CMFCRibbonColorButton* pBtn2 = new CMFCRibbonColorButton(ID_RIBBON_CBTN_2, _T(“Simple with Options”), TRUE, 1, 1); pBtn2->SetAlwaysLargeImage(); pBtn2->SetDefaultCommand(FALSE); pBtn2->EnableAutomaticButton(_T(“&Automatic”), RGB(0, 0, 0)); pBtn2->EnableOtherButton(_T(“&More Colors…”), _T(“More Colors”)); pPanel1->Add(pBtn2); CMFCRibbonColorButton* pBtn3 = new CMFCRibbonColorButton(ID_RIBBON_CBTN_3,…
Continue reading