How do I rename the MFC ribbon panel? I have a related problem. My ribbon's original captions in the resource are in Language A. I translate everything in Language B, including the panels' names(using a method, similar to the offered in the mentioned topic). But when I shrink the window so that some of(or all) the panels collapse, their names go back to Language A. When I widen the window, the panels' names are translated into Language B again. Still haven't found a solution. Anyone got an idea? :/ EDIT: We use a translator class which works with flags, so, according to the language flag, it translates strings which are then applied to the categories, buttons etc. I made my own panel class which derives from CMFCRibbonPanel. I added this method:
void CRibbonPanel::setName(CString name)
{
m_strName = name;
}
Then I make a loop to find and edit every panel's name:
(CRibbonPanel*)thePanel->setName(theNewName);
It works fine but when the panels are collapsed, their captions go back to the default language.