Solved it! I inherited CMFCRibbonBar. I added a method delQAT() in which i call m_QAToolbar.RemoveAll(). In CMyAppMainFrame::OnCreate() I call this new method.
class CRibbonBar : public CMFCRibbonBar
{
public:
void delQAT()
{
m_QAToolbar.RemoveAll(); }
}
class CMyAppMainFrame(...)
{
protected:
CRibbon m_wndRibbonBar;
public:
void OnCreate()
{
m_wndRibbonBar.delQAT();
}
}
Hope it'll help other people with the same problem :)