473,785 Members | 2,698 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VC dialogs & XP themes

When I build some add-ins for the management console using C++, the add-ins
made by me show a Win2000 interface while the rest of the add-ins made by MS
are using XP themes.

What am I missing?

Cheers

Nov 17 '05 #1
18 2283
>When I build some add-ins for the management console using C++, the add-ins
made by me show a Win2000 interface while the rest of the add-ins made by MS
are using XP themes.

What am I missing?


Have a look at:

http://msdn.microsoft.com/library/de.../xptheming.asp

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
Nov 17 '05 #2
"David Lowndes" <da****@example .invalid> wrote in message
news:25******** *************** *********@4ax.c om...
When I build some add-ins for the management console using C++, the
add-ins
made by me show a Win2000 interface while the rest of the add-ins made by
MS
are using XP themes.

What am I missing?


Have a look at:

http://msdn.microsoft.com/library/de.../xptheming.asp


Thanks a lot.
It's funny that XP was released in 2001, and Visual Studio 2003 in 2003 :)

Am I correct to say that ATL (shipped with Vstudio 2003 as well) simply does
not work with theming?

Nov 17 '05 #3
>Am I correct to say that ATL (shipped with Vstudio 2003 as well) simply does
not work with theming?


I don't see the connection. What has ATL to do with XP themes?

One of the limitations imposed by VS2003 (that wasn't in VS2002) is
that only Unicode builds get a manifest - so non-Unicode builds won't
appear themed. Is that perhaps the situation you're hitting?

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
Nov 17 '05 #4
"David Lowndes" <da****@example .invalid> wrote in message
news:5l******** *************** *********@4ax.c om...
Am I correct to say that ATL (shipped with Vstudio 2003 as well) simply
does
not work with theming?
I don't see the connection. What has ATL to do with XP themes?


I Know that ATL is not WTL but ATL has a lot of DialogImpl tools and VC
allows you to edit dialogs by using the resource editor.

There is a XPTHeme.cpp file, but I'm still puzzled why MS did not support
that out of the box or I'm simply missing some hidden feature?
What I did:
1) #include "commctrl.h "
2) #define ISOLATION_AWARE _ENABLED 1 (!! if you leave out the 1, it will not
compile!)3) #define MANIFEST_RESOUR CE_ID 2
In the rc file
MANIFEST_RESOUR CE_ID RT_MANIFEST "myDll.dll.mani fest"(manifest contents not
shown here in this post)
One of the limitations imposed by VS2003 (that wasn't in VS2002) is
that only Unicode builds get a manifest - so non-Unicode builds won't
appear themed. Is that perhaps the situation you're hitting?
No, I stopped compiling for Win98 and ANSI compatible apps already 5 years
ago.
Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq


Nov 17 '05 #5
>What I did:
1) #include "commctrl.h "
2) #define ISOLATION_AWARE _ENABLED 1 (!! if you leave out the 1, it will not
compile!)3) #define MANIFEST_RESOUR CE_ID 2
In the rc file
MANIFEST_RESOU RCE_ID RT_MANIFEST "myDll.dll.mani fest"(manifest contents not
shown here in this post)


Other than compiling with the definition you mention, ensuring the
definition is visible for the appropriate include files, and ensuring
that your DLL really does have the manifest resource (open the DLL in
VS to be sure), I'm not aware that you have to do anything else to get
themes to work (though I've never tried with an MMC snap-in)

The following says pretty much the same:

http://msdn.microsoft.com/library/en...frame=true#mmc

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
Nov 17 '05 #6
It's not enough to add the manifest in your resource's textinclude, but
you need to add it to your resource.h file as well, if it's not in
there.

Nov 17 '05 #7
>It's not enough to add the manifest in your resource's textinclude, but
you need to add it to your resource.h file as well, if it's not in
there.


Huh?

Please explain what you mean.

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
Nov 17 '05 #8
"David Lowndes" <da****@example .invalid> wrote in message
news:l8******** *************** *********@4ax.c om...
What I did:
1) #include "commctrl.h "
2) #define ISOLATION_AWARE _ENABLED 1 (!! if you leave out the 1, it will
not
compile!)3) #define MANIFEST_RESOUR CE_ID 2
In the rc file
MANIFEST_RESO URCE_ID RT_MANIFEST "myDll.dll.mani fest"(manifest contents
not
shown here in this post)
Other than compiling with the definition you mention, ensuring the
definition is visible for the appropriate include files, and ensuring
that your DLL really does have the manifest resource (open the DLL in
VS to be sure), I'm not aware that you have to do anything else to get
themes to work (though I've never tried with an MMC snap-in)


Sure I did!
thanks however for the hint.
The following says pretty much the same:

http://msdn.microsoft.com/library/en...frame=true#mmc

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq


Nov 17 '05 #9
"David Lowndes" <da****@example .invalid> wrote in message
news:l8******** *************** *********@4ax.c om...
What I did:
1) #include "commctrl.h "
2) #define ISOLATION_AWARE _ENABLED 1 (!! if you leave out the 1, it will
not
compile!)3) #define MANIFEST_RESOUR CE_ID 2
In the rc file
MANIFEST_RESO URCE_ID RT_MANIFEST "myDll.dll.mani fest"(manifest contents
not
shown here in this post)
Other than compiling with the definition you mention, ensuring the
definition is visible for the appropriate include files, and ensuring
that your DLL really does have the manifest resource (open the DLL in
VS to be sure), I'm not aware that you have to do anything else to get
themes to work (though I've never tried with an MMC snap-in)

The following says pretty much the same:

http://msdn.microsoft.com/library/en...frame=true#mmc


Indeed.
And such as docs suggest. MFC with C++.NET can by design handle themes if
you only add the resource stuff and the flags.

And ATL does not. If somebody can confirm me this, I simply know the next
step.

(Before someone says that ATL is not graphical such as MFC or WTL, I must
slightly disagree, ATL supports MMC snapins).
Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq


Nov 17 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2606
by: Tim Marshall | last post by:
I would swear that when I developed in A97, I could change the back colour of a form. However, in Windows XP, on both A97 and A2003, there no longer is a property showing in the format tab for form properties for a back colour. I think the themed control idea is pretty good in that a developer can really go out on a limb if s/he chooses all kinds of fancy background colours for his/her app since colours selection is a very subjective...
5
1965
by: Sol | last post by:
Hi Guys, I'm looking for some advice / guidelines on using Themes with an application I am working on. The application needs to allow people to customize the appearance utilizing what I would consider to be a Themeing and Skinning mechanism. What is critical is that this should be as flexible as possible. What I would like to do is use the built-in Themeing mechanism to allow the customization, but as we know, the App_Theme folder...
0
996
by: lew26 | last post by:
I have one page on my site that i do not want to have themes, or stylesheet themes applied to it. How do i disable both. I already know how to disable themes. But how do i disable stylesheetThemes? Code Disable Themes. <%@ Page Language="VB" EnableTheming="false" AutoEventWireup="false" CodeFile="FileManager2.aspx.vb" Inherits="Admin_FileManager_FileManager2" Debug="true" Trace="true" TraceMode="SortByCategory" %>
2
1595
by: Clint Chapman | last post by:
When I look at the source html generated from my asp, the links for the css in my theme are duplicated to include files in the _vti_cnf. <link href="../../App_Themes/MainTheme/_vti_cnf/StyleSheet.css" type="text/css" rel="stylesheet" /> <link href="../../App_Themes/MainTheme/StyleSheet.css" type="text/css" rel="stylesheet" /> I've had problems with my theme not working because there appeared to be too many css files. I was able to...
0
10327
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10151
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8973
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7499
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6740
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5381
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3647
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2879
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.