|
Is this for real? You're like 15 years late with this...
|
|
|
|
|
The article was posted in 2001.
|
|
|
|
|
just call a method -> Application.EnableVisualStyles();
before starting your apps -> Application.Run(yours form or MDI form);
which will change all the controls in .net to XP Theme style intended for the next OS after XP.
Application.EnableVisualStyles(); //C#
Application.Run(form or MDI form);
Application.EnableVisualStyles() 'VB, () means calling a void function(sub)
Application.Run(form or MDI form)
Application::EnableVisualStyles(); //C++
Application::Run(form or MDI form);
or if you start with a form:
Application.EnableVisualStyles(); //C#
form1.Show();
Application.EnableVisualStyles() 'VB
form1.Show() '() is not required. but better for above reason
Application::EnableVisualStyles(); //C++
form1::Show();
end.
|
|
|
|
|
This will only work in a managed application.
|
|
|
|
|
Hi Mate,
awesome job, helped me a lot.
I was using it in an old MFC Application with the Visual Studio 2008 and it worked like a charm. Thanks! 
|
|
|
|
|
Hi all,
I have an IE toolbar in VC2003. I did all the thigs you described but the theme is not working . Please help
|
|
|
|
|
|
Dear All,
I want know about, Is it possible to enable(embed) xp themes to application without manifest file?
I used previously in precompiled header stdafx.h
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
It works fine in VS2005 and later verisons, I need a solution that must run on all VS versions(including VS2003, VS2004).
Thank you,
Basavaraj.
modified on Tuesday, May 20, 2008 1:46 AM
|
|
|
|
|
I Used this a lot when I was on VC++6, but now i migrated to VS2005, I can't do this any more!
Do you know how to achive same thing on VS2005?
Thanks!
|
|
|
|
|
#pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
Use it for VS2005...It works fine , (It is compiler dependen)
Thanks,
Basavaraj.
|
|
|
|
|
Not sure you still need this, but you can define the manifest directly into your project options. Check for something called Manifest whatever, then go to Input and Output. There should be there a field called additional manifest files, so write there the name of your manifest at it will be embedded instead of the regular one (which doesn't allow XP themes).
As for the reply above, your method didn't work for me. :/
|
|
|
|
|
I'm developing a DLL addin of Outlook which will be called by Outlook. I do like the articale said, but it does not work. Anyone has this kind of experience?
Thanks
Justin Li
-----------
www.rollingsoftware.com
|
|
|
|
|
Not long ago, I had the same question, and I remembered reading an essay which says 'change resource ID to 2(or someone else? It's been such a long time that I am not so sure now) in implementing dll', however, I still failed.
But just now, when I came back 2 rebuild my dll program, an idea suddenly come in 2 my mind: How abt. just 2 insert this resource into the app. who calls my dll, and finally I think I got the solution.
And I still wondering if there is any other methods like just changing the resource ID in the dll itself, and anyone who got the idea > share it with us..please 
|
|
|
|
|
Hello,
I create a simple IE toolbar in VC6 ATL COM. But it appears in Classic style. Is there any method to convert it into XP style.
Ansif
|
|
|
|
|
Hello.
I guess your IE Toolbar is a DLL.
To enable XP style on your project create manifest file described on this article and do the two single steps:
Put this line on your stdafx.h
#define ISOLATION_AWARE_ENABLED 1
And these lines on your resource file
#include <windows.h><br />
ISOLATIONAWARE_MANIFEST_RESOURCE_ID RT_MANIFEST "yourapp.dll.manifest"
I hope it works.
More information can be found here http://msdn2.microsoft.com/en-us/library/ms649781.aspx[^]
Best Regards
Rafael Franco.
|
|
|
|
|
Hi,
My toolbar is a DLL. And I´m doing these steps, but my toolbar for IE doesn´t work with XP styles.
Could you help me?
Thanks in advance.
|
|
|
|
|
I added Xp style to my application.
But the problem was there was a border around the button i created using
CButton::Create()
So i need to get rid of that problem.pls reply me
bhw
|
|
|
|
|
How to add xp style in visual studio 2008 please help me i an unable to add xp style and cant use in windows form appplication
|
|
|
|
|
I add Windows XP Theme Style via manifest file in the same application folder.
And now I not see the focus rectangle when a button gets the focus.
Anyone knows how to fix it?
Note: I don't use MFC, I calls the Windows API directly.
Thanks for your useful article.
Conxita
|
|
|
|
|
I can't change the check box text color after I apply the XML to my project.
I change the text color in OnCtlColor via SetTextColor.
But It doesn't work.
How can I change the text color?
|
|
|
|
|
In VS2005 for an upgraded project (originally created in VS2003) I also needed to insert the following in my stdafx.h:
#ifdef _UNICODE
#if defined _M_IX86
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")
#elif defined _M_IA64
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"")
#elif defined _M_X64
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"")
#else
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
#endif
#endif
Hope that helps...
|
|
|
|
|
Hi all,
I have an application in vc6,in that i am using XP style.
The way I am giving XP Style to my application is by adding an XML File
to my resource . The content of the Xml file is given below
/******************************************************************************/
manifestVersion="1.0">
version="1.0.0.0"
processorArchitecture="X86"
name="Microsoft.Windows.YourApplication"
type="win32"
/>
LitmusPro
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
/****************************************************************************/
It is working fine in VC6 .
But, when I compile my application in Visual Studio 2005 , this is not working . How can I make it work.
Please Help me
Thanks
Vinod
|
|
|
|
|
In VS 2005 you can include via the project settings "Manifest" and "include additional Manifest".
Then delete it out of your resources and watchout that no other Manifests are in your Projects your you ran into troble.
"There only be can One"
Greetings from Germany
|
|
|
|
|
That was great help!!! Thanks a lot...
There is a much easier way to do this in Visual Studio 2005...
http://www.mathies.com/weblog/?p=225
|
|
|
|
|