Home Dashboard Directory Help
Search

MFC Windows 7 Ribbon application does not look right by Matt Houser


Status: 

Closed
 as Fixed Help for as Fixed


2
0
Sign in
to vote
Type: Bug
ID: 551582
Opened: 4/15/2010 1:18:57 PM
Access Restriction: Public
1
Workaround(s)
view
0
User(s) can reproduce this bug

Description

Creating a new MFC Application project with a Windows 7 Ribbon interface does not look correct when created. The top-left "file" button is big like the Office 2007 button, not compact like the Windows 7 ribbon button is.
Details
Sign in to post a comment.
Posted by Donnie Wh on 3/22/2011 at 12:00 PM
I found my answer, since I was updating an existing application, I needed to add
CMFCVisualManager::SetDefaultManager(RUNTIME_CLASS(CMFCVisualManagerWindows7));
Posted by Donnie Wh on 3/22/2011 at 11:52 AM
I have applied the workaround, which almost works. However, instead of having a solid color looking like a button, I still see a circle similar to the office 2007 look and feel. Are there any additional parts to the work around, or better yet, an estimation of when the fix will be available?
Posted by Microsoft on 4/29/2010 at 2:15 PM
Hello,

Thanks for the report. This is a bug in the MFC application wizard and it has been fixed for a future release of Visual Studio.

To workaround the issue, you simply need to add the following line of code to your main frame class OnCreate method:

    m_wndRibbonBar.SetWindows7Look(TRUE);

Hope this helps!

Pat Brenner
Visual C++ Libraries Development
Posted by Microsoft on 4/16/2010 at 5:53 AM
Thanks for your feedback. We were able to reproduce the issue you are seeing. We are routing this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Sign in to post a workaround.
Posted by Matt Houser on 4/15/2010 at 1:19 PM
Add the following to CMainFrame::OnCreate():

m_wndRibbonBar.SetWindows7Look(TRUE);