Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Note
The Microsoft Foundation Classes (MFC) library continues to be supported. However, we're no longer adding features or updating the documentation.
To use the ribbon resource in your application, modify the application to load the ribbon resource.
To load a ribbon resource
- Declare the
Ribbon Controlobject in theCMainFrameclass.
CMFCRibbonBar m_wndRibbonBar;
- In
CMainFrame::OnCreate, create and initialize the Ribbon Control.
if (!m_wndRibbonBar.Create (this))
{
return -1;
}
if (!m_wndRibbonBar.LoadFromResource(IDR_RIBBON))
{
return -1;
}