Look & feel of MFC-programs
Since a view days I am useing MS-VS C++ 2010 on a Win-7-PC and it works well, but my windows-appls looks like in win 2k or XP, not like Windows-7. How can I tell my project to display the win-controls like in other win-7-programs? Thanks from Germany.
Re: Look & feel of MFC-programs
Did you use the project wizard to create a new MFC project?
If so, in one of the steps it asks to include a common control manifest. You need that to enable themes.
Re: Look & feel of MFC-programs
Use XP-Controls is set. What I have to set within my Project-settings?
Re: Look & feel of MFC-programs
When you are using the MFC wizard to create a new project, on the "Advanced features" page it says "Common Control Manifest". That needs to be enabled for themes to work.
Are you using UNICODE or not? Check this in project settings > General > Character set.
Re: Look & feel of MFC-programs
If you have still troubles, see here: http://www.codeguru.com/cpp/controls...icle.php/c5227
This still works for me.
Re: Look & feel of MFC-programs
I tryed the steps in the link above -> it do not work! I can't beleve that it is so difficult to tell him to use the new controls-design?! Is there no other way? Please help me!!!!!!
Re: Look & feel of MFC-programs
Quote:
I tryed the steps in the link above -> it do not work! I can't beleve that it is so difficult to tell him to use the new controls-design?! Is there no other way? Please help me!!!!!!
MFC is about 17 years old. If you want the newest controls and shapes you better would go for Windows Forms and managed (.NET) code (managed C++ or C#).
To "sparkle" VS2010 MFC with W7 features you may read the articles:
http://www.codeguru.com/cpp/cpp/cpp_....php/c14929__2
http://blogs.msdn.com/b/somasegar/ar...windows-7.aspx
http://www.codeguru.com/forum/showthread.php?t=500218
Regards, Alex
Re: Look & feel of MFC-programs
Quote:
Originally Posted by
itsmeandnobodyelse
MFC is about 17 years old. If you want the newest controls and shapes you better would go for Windows Forms and managed (.NET) code (managed C++ or C#).
No offense, but that's a load of crap. That's like saying you shouldn't use computers, because they have been around for 50 years. Heck, people have had a brain for millenia, so why still use yours, right?
There are pros and cons to both MFC and Windows Forms (and WPF, and...), and a comparison based on sound reasons could lead to the conclusion that any one of them is best suited for a particular project. The fact that something has been around for 17 years already and is still being used is IMO a definite pro.
Re: Look & feel of MFC-programs
Quote:
Originally Posted by
itsmeandnobodyelse
MFC is about 17 years old. If you want the newest controls and shapes you better would go for Windows Forms and managed (.NET) code (managed C++ or C#).
Sorry to burst your bubble, but the latest version of MFC has the capability to make it easier to design modern looking UIs than compared to C# using the .NET framework.
The latest version of MFC for example has full support for the Office 2007 Ribbon bar AND the native Windows 7 Ribbon bar with full support in the resource editor of Visual Studio to graphically design your ribbon. As far as I know, the C#/WinForms world does not yet have a graphical designer for Ribbon bars.
To the OP, you still did not reply to my question "Are you using UNICODE or not? Check this in project settings > General > Character set."
Anyway, if you still have problems, can you post your project (remove temporary files) so we can take a look at it why it's not working?