0

I've just started using Visual Studio 2010's Dialog Editor and the first thing I noticed was that the controls I can add all have the Windows 95 style and not the Window Vista/7 Aero style.

I suspect that maybe only MFC has Aero style controls, but I can't test this since I really do not want to use MFC (this is supposed to be a super lightweight program).

Is there anything I can do to make Dialog boxes with Aero style controls?

Joshua
  • 1,148
  • 3
  • 17
  • 34
  • possible duplicate of [Programming In C + Win API: How To Get Windows 7 Look For Controls?](http://stackoverflow.com/questions/5663091/programming-in-c-win-api-how-to-get-windows-7-look-for-controls/5663284#5663284) – Cody Gray - on strike Mar 11 '12 at 11:09

1 Answers1

8

You need to make sure that your application includes a comctl32 v6 manifest to enable visual styles.

The simple way to do this is to add the following to your code:

#pragma comment(linker,"\"/manifestdependency:type='win32' \
name='Microsoft.Windows.Common-Controls' version='6.0.0.0' \
processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
David Heffernan
  • 601,492
  • 42
  • 1,072
  • 1,490