Click here to Skip to main content
11,571,471 members (69,269 online)
Click here to Skip to main content

Add Windows XP Theme Style to your current projects

, 6 Sep 2001 505.2K 3.4K 129
Rate this:
Please Sign up or sign in to vote.
Add Windows XP Theme Style to your current projects

Sample Image - xptheme.jpg

The following steps introduces XP Theme Style to your project:

  1. Insert Resource, choose "Custom", input "24" (without quotes) as resource type
  2. Copy and paste the following XML sheets into the editor.
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?> 
     <description>Test Application</description>

    You can replace test.exe and Test Application with any string you like. This will not affect the behaviour of the application.

  3. Change resource ID to 1.
  4. Add calls to InitCommonControls() in your WinMain(). Don't forget to include commctrl.h and link comctl32.lib. Rebuild your project, all done Smile | :)

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.


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Jiang Hong
China China
No Biography provided

You may also be interested in...

Comments and Discussions

GeneralTheme not working in Dll Pin
Member 464702929-Jun-08 2:07
memberMember 464702929-Jun-08 2:07 
Hi all,

I have an IE toolbar in VC2003. I did all the thigs you described but the theme is not working Frown | :( . Please help
GeneralRe: Theme not working in Dll [modified] Pin
Snakefoot24-Sep-09 9:30
memberSnakefoot24-Sep-09 9:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.150624.2 | Last Updated 7 Sep 2001
Article Copyright 2001 by Jiang Hong
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid