Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GetSysColor of the page of the pageframe
Message
De
19/06/2009 02:09:13
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01406181
Message ID:
01407083
Vues:
46
Hi Bhav,

you need to check your code.

>And to top it off, when on a W2K machine the _IsThemeActive() also returns a .T.

will not work with
IF _IsThemeActive() = 1
::)

UPDATE
You need to wrap _IsThemeActive() into a procedure of your own and add some handling so that you can determine the OS. In fact I would not try to declare the XP functions in W2K

Agnes

>Thanks Naomi for the links and your efforts. GetThemeSysColor() also returned the same colors as the GetSysColor()
>
>
        IF _IsThemeActive() = 1
>                MESSAGEBOX("theme active")
>                lnTheme = _OpenThemeData(tnHandle, 0)
>                lnColor = _GetThemeSysColor(lnTheme, tnColorScheme)
>                _CloseThemeData(lnTheme)
>        ELSE
>                lnColor = _GetSysColor(tnColorScheme)
>        ENDIF
>
>And to top it off, when on a W2K machine the _IsThemeActive() also returns a .T.
>
>Thanks.
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform