BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to detect current XP theme?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Development)
View previous topic :: View next topic  
Author Message
Martijn
Guest





PostPosted: Wed Jul 07, 2004 6:52 am    Post subject: How to detect current XP theme? Reply with quote




How can I find out whether Windows is using the XP look or the
classic look?
Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Wed Jul 07, 2004 7:16 am    Post subject: Re: How to detect current XP theme? Reply with quote




"Martijn" <mfigee (AT) hotmail (DOT) com> wrote


Quote:
How can I find out whether Windows is using
the XP look or the classic look?

Haave a look at the GetCurrentThemeName(), GetWindowTheme(), and
IsAppThemed() functions.


Gambit





Back to top
Martijn
Guest





PostPosted: Wed Jul 07, 2004 1:23 pm    Post subject: uxtheme.h does not compile in Builder 6 Reply with quote



"Remy Lebeau (TeamB)" <gambit47.no.spam (AT) no (DOT) spam.yahoo.com> wrote:
Quote:

"Martijn" <mfigee (AT) hotmail (DOT) com> wrote in message
news:40eb9d95$1 (AT) newsgroups (DOT) borland.com...

How can I find out whether Windows is using
the XP look or the classic look?

Haave a look at the GetCurrentThemeName(), GetWindowTheme(), and
IsAppThemed() functions.


Gambit

I tried IsAppThemed(), which uses header uxtheme.h. This
header does not compile in C++Builder 6. It gives errors on
the typedefs enum THEMESIZE and enum PROPERTYORIGIN which have
no identifier.

Another question that came to mind is: when I build an appl.
on XP, using functions from this header file, will it run on
Win2K?

Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Wed Jul 07, 2004 6:53 pm    Post subject: Re: uxtheme.h does not compile in Builder 6 Reply with quote


"Martijn" <mfigee (AT) hotmail (DOT) com> wrote


Quote:
when I build an appl. on XP, using functions from
this header file, will it run on Win2K?

Not if you are using static linking, no, since the functions to not exist in
Win2K. You would have to dynamically load the functions at runtime using
LoadLibrary() and GetProcAddress() instead.


Gambit



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Development) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.