Click here to Skip to main content
15,895,142 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am converting the old project from VS 6 to VS 10.
My headerctrl lost xp theme attributes and fell back to the windows classic. There are must be something wrong with new project settings I suppose.
Posted
Comments
OriginalGriff 1-Jan-11 12:12pm    
Where you intending to ask a question?
Because if so, you forgot to include it.

1 solution

You need to add the following pragma to your source file, or the content string to your manifest (under the Linker section of Project Properties):
// Enable visual styles
#pragma comment(linker, "\"/manifestdependency: \
                            type='win32' \
                            name='Microsoft.Windows.Common-Controls' \
                            version='6.0.0.0' \
                            processorArchitecture='*' \
                            publicKeyToken='6595b64144ccf1df' \
                            language='*'\"")

See here[^] for more information.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900