m_wndRibbonBar.ShowCategory(2, TRUE); m_wndRibbonBar.SetActiveCategory(m_wndRibbonBar.GetCategory(2), TRUE); 两个同时调用。