How do I rename the MFC ribbon panel?
问题 I am programming a multi-language application which supports dynamical switch from one language to another. Since there is a GetName function in class CMFCRibbonPanel, I think there should also be a SetName function. But unfortunately I can't find the desired function. How do I rename a ribbon panel dynamically? Thank you very much. 回答1: the panel name is protected. you can derive your own class from CMFCRibbon and add a "SetName" method. class MyRibbonPanel : public CMFCRibbonPanel { public: