The following steps introduces XP Theme Style to your project:
- Insert Resource, choose "Custom", input "24" (without quotes) as resource type
- Copy and paste the following XML sheets into the editor.
You can replace
Test Application with any string you like. This will not affect the behaviour of the application.
- Change resource ID to 1.
- Add calls to
InitCommonControls() in your
WinMain(). Don't forget to include commctrl.h and link comctl32.lib. Rebuild your project, all done :-)
This special resource type is only recognized by Windows XP. In any other version of Windows (Windows 9x/NT/2000), the program simply runs as before.
You can also create a manifest file with the same name of the EXE file, plus an extension .manifest, which contains the same lines as the ones above. For our test.exe, the manifest file is test.exe.manifest.