Hi
I have followed this tutorial to add a ribbon to my project:
http://msdn.microsoft.com/en-us/library/bb983935.aspx
I have made good progress but I can't work out why I still have a toolbar visible underneath the ribbon.
I wanted to show you the image but it says my account is not verified.
This is my code:
int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) { int iMode; CString strPath; if (CMDIFrameWndEx::OnCreate(lpCreateStruct) == -1) return -1; if (!m_wndToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP | CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) || !m_wndToolBar.LoadToolBar(IDR_MAINFRAME)) { TRACE0("Failed to create toolbar\n"); return -1; // fail to create } // AJT v14.0.0 Create the ribbon bar if (!m_wndRibbonBar.Create(this)) { return -1; //Failed to create ribbon bar } m_wndRibbonBar.LoadFromResource(IDR_RIBBON_MAIN); // Set the default manager to Office 2007 CMFCVisualManager::SetDefaultManager(RUNTIME_CLASS(CMFCVisualManagerOffice2007)); CMFCVisualManagerOffice2007::SetStyle(CMFCVisualManagerOffice2007::Office2007_LunaBlue);
What am I doing wrong to cause the toolbar to still display?
Thanks.
Andrew