//获取控件
CBCGPRibbonButton *pRibbonBtn = NULL;
pRibbonBtn = DYNAMIC_DOWNCAST(CBCGPRibbonButton, m_wndRibbonBar.FindByID(ID_UPLOAD_DATA));
CString strr = pRibbonBtn->GetText();
直接使用FindByID来获取信息,用来操作这个控件
//获取控件
CBCGPRibbonButton *pRibbonBtn = NULL;
pRibbonBtn = DYNAMIC_DOWNCAST(CBCGPRibbonButton, m_wndRibbonBar.FindByID(ID_UPLOAD_DATA));
CString strr = pRibbonBtn->GetText();
直接使用FindByID来获取信息,用来操作这个控件