CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2010
    Posts
    112

    MFC GUI style XP

    how to make MFC app look like one on the left?

    http://s4.postimage.org/m13j3m201/guii.png

    Both projects are in VC2008

    I have sources of both those windows and sources are the same but I can't make one on the right look nicer.

    I've added this into linker manifest

    "type='Win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'"

    but no good, still the same.

    How to make it?

  2. #2
    Join Date
    Apr 1999
    Posts
    3,585

    Re: MFC GUI style XP

    VS 2008 changed the way theme support is handled. Try adding this to you stdafx.h file:

    Code:
    #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")
    Gort...Klaatu, Barada Nikto!

  3. #3
    Join Date
    Feb 2010
    Posts
    112

    Re: MFC GUI style XP

    Mike thank you very much, you solved it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured