Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Finding sysmetric info to build Office 2003 gradients
Message
De
06/06/2005 12:41:09
 
 
À
06/06/2005 11:46:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
01020266
Message ID:
01020556
Vues:
32
This message has been marked as the solution to the initial question of the thread.
Malcolm,

I am just about to do this for a .NET control but I believe you need to do some of the following:-

1] Determine if the version of the OS supports themes.
2] If it does find out if themes are in use using something like:-
declare integer IsThemeActive in UxTheme
3] Now pick the relevant colour indexes for the gradient using the following:-
declare integer GetSysColor in user32 integer nIndex 
I think the gradient is based on a combination of the following entries:-

COLOR_GRADIENTACTIVECAPTION
COLOR_ACTIVECAPTION

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/getsyscolor.asp

Sorry for being vague, but like I said I am about to start implementing this support.

Regards
Neil
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform