473,406 Members | 2,371 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Theming

Hi,

I try to find out whether there is a reliable way to detect
if an application is themed. Especially I need to know that
from within my user control.

From all the newsgroup posts I read I could only infer two
things:
I could PInvoke the API functions IsAppThemed() and IsThemeActive().
IsAppThemed() indicates whether theming is enabled system
wide. IsThemeActive() tells whether theming is disabled for
a particular application via the program compatibility dialog.

These functions do, however, not tell me whether there is a
manifest! Since the manifest could be embedded in the
applications resources it's not enough to simply check for
the existence of a manifest file.

Another post suggested checking the version of comctl32.dll
that is used by the system for a particular application. Version 6
then would tell me the app uses themes. How can I check for
the comctl32.dll version in my C# control?

thanks for any ideas!

Nick
Nov 17 '05 #1
1 1359
> Another post suggested checking the version of comctl32.dll
that is used by the system for a particular application. Version 6
then would tell me the app uses themes. How can I check for
the comctl32.dll version in my C# control?


I now tried this with GetCurrentProcess().Modules and looked
for ComCtl32.dll to check its version with ProcessModule.FileVersionInfo.
The strange result is that whether the app is themed or not it
always has both versions mapped!! I tried the same with a non-dotnet
application and it has always either version 5 or version 6 mapped
depending on whether there exists a manifest.

Any ideays?

Nick

Nov 17 '05 #2

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

Similar topics

4
by: rawCoder | last post by:
Hi All, Have you noticed that Outlook ( dont remember which version ) utilizes three to four colours to give the Blue theme look AliceBlue LightSteelBlue Midnight Blue You can use the...
5
by: Stephan Schaem | last post by:
How does one write an unmanaged function that perform this functionality? In short I want to turn off/on visual style in my app... Thanks, Stephan PS: two people have been looking for...
18
by: Egbert Nierop \(MVP for IIS\) | last post by:
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? ...
5
by: Christopher Kimbell | last post by:
I have created my own WebPart using code, it is not derived from a UserControl. Inside this WebPart I create a Calendar Control and add it to the WebParts Control collection. Now I want to apply...
5
by: Michael Herman \(Parallelspace\) | last post by:
1. What are some compelling solutions for using Master/Content pages with Web Pages? 2. If a content area has a web part zone with web parts, what is the user experience like when "editting" the...
0
by: zerosleep | last post by:
I want to do this (some props removed intentionally): ..skin file: <asp:GridView SkinID="GridThemeA"> <RowStyle CssClass="someClass" /> <AlternatingRowStyle CssClass="someAltClass" />...
2
by: sstrangee | last post by:
Maybe I don't get the whole theming thing... but here is what I'm trying to do: I have a App_Themes directory with a Theme named "Standard." Under this theme a CSS named "standard.css" and also...
11
by: Maximus | last post by:
Hi all, Has anyone been able to reterive the gradient selection colors used in outlook 2003? Basically, I have a grid showing a list of records and my client wants the selected row to have the...
0
by: Patrick Sannes | last post by:
Hi all, I have some troubles getting my webapp ie AND ff compatible. So I was thinking to create multiple stylesheets. Normaly I could do something like <!-->. But at this moment my stylesheet...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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,...

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.