1

After adding a ribbon item, or calling a method that updates an item, the ribbon does not refresh correctly. Sometimes it's OK after resizing the window but most of the time the panel is in a collapsed state.

I tried all the functions I could think of, ReposPanels, RecalcWidths, RecalcLayout etc etc but nothing worked...

demoncodemonkey
  • 11,730
  • 10
  • 61
  • 103

1 Answers1

9

This worked for me:

    m_ribbonBar.ForceRecalcLayout(); //CMFCRibbonBar m_ribbonBar;
demoncodemonkey
  • 11,730
  • 10
  • 61
  • 103