获取Ribbon控件指针MFC10.0
获取Ribbon控件指针MFC10.0
COLORREF CRibbonAppDoc::GetColor(void)
{
CMFCRibbonBar* pRibbon = ((CMDIFrameWndEx*) AfxGetMainWnd())->GetRibbonBar();
ASSERT_VALID(pRibbon);CMFCRibbonColorButton* pColor = DYNAMIC_DOWNCAST(
CMFCRibbonColorButton, pRibbon->FindByID(ID_FONT_COLOR));
// Get the selected color
return pColor->GetColor();
}
补充:综合编程 , 其他综合 ,