隐藏QAT

class CRibbonBar : public CMFCRibbonBar
{
public:
   void delQAT()
   {
      m_QAToolbar.RemoveAll(); //m_QAToolbar is a protected member of CMFCRibbon
   }
}
class CMyAppMainFrame(...)
{
   //...
protected:
   CRibbon m_wndRibbonBar;
   //...
public:
   void OnCreate()
   {
      //...
      m_wndRibbonBar.delQAT();
      //...
   }
}

你可能感兴趣的:(隐藏QAT)