So you’ve created a new MFC Ribbon application that has the Windows 7 ribbon look to it. Unfortunately, when you run the application, it looks like this:

Notice the big ugly button in the corner, and the quick access toolbar is not drawn correctly (down arrow menu button).
This happens when you do not select the “Enable visual style switching” option.
The correction is to find this line of code in MainFrm.cpp:
CMFCVisualManager::SetDefaultManager(RUNTIME_CLASS(
CMFCVisualManagerWindows7));
and add the following line immediately after it:
m_wndRibbonBar.SetWindows7Look(TRUE);
Once you’ve done that, your window will look correct.

I’ve reported the issue on Microsoft Connect. A link to the report can be found here.