Home > Software engineering >  How to switch the MFC ribbon button caption content not? For help
How to switch the MFC ribbon button caption content not? For help

Time:11-16

CMFCRibbonButton * pRibbonBtn=DYNAMIC_DOWNCAST (CMFCRibbonButton, m_wndRibbonBar FindByID (ID_SYSTEM_BTN_LOGIN));
PRibbonBtn - & gt; SetText (_T (" Login "));

CodePudding user response:

Need to CMFCRibbonBaseElement
CMFCRibbonBaseElement * ele=m_wndRibbonBar. FindByID (id);
CMFCRibbonButton * pRibbonBtn=static_cast & lt; CMFCRibbonButton * & gt; (ele);

CodePudding user response:

Hello! Switch or not,
Is related to the two CDJPRibbonBar and CMFCRibbonBar? I now have the statement CDJPRibbonBar m_wndRibbonBar

CodePudding user response:

CDJPRibbonBar m_wndRibbonBar??
Should be CMFCRibbonBar m_wndRibbonBar,

CodePudding user response:

Who can help to solve this problem?

CodePudding user response:

Words can m_wndRibbonBar. ForceRecalcLayout ();
  • Related