 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Martijn Guest
|
Posted: Wed Jul 07, 2004 6:52 am Post subject: How to detect current XP theme? |
|
|
How can I find out whether Windows is using the XP look or the
classic look?
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Wed Jul 07, 2004 7:16 am Post subject: Re: How to detect current XP theme? |
|
|
"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
|
Posted: Wed Jul 07, 2004 1:23 pm Post subject: uxtheme.h does not compile in Builder 6 |
|
|
"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
|
Posted: Wed Jul 07, 2004 6:53 pm Post subject: Re: uxtheme.h does not compile in Builder 6 |
|
|
"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 |
|
 |
|
|
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
|
|