Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I implement call to this API
Message
De
24/04/2000 18:34:23
 
 
À
22/04/2000 19:44:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00362548
Message ID:
00362945
Vues:
17
>For your info, got answer by trial and error:
>
>DECLARE INTEGER GetSysColor IN win32api INTEGER nIndex
>lnColor1 = GetSysColor(4) && Menu background
>lnColor2 = GetSysColor(2) && Active window caption
>
>I then render the _SCREEN and my logo in those colors and it looks pretty darn sharp. Now, have to figure how to refresh _SCREEN automatically if user changes color preferences. That will look impressive in a presentation.
>
>How do you do that without a timer? Is there an appropriate event?
>

The problem that you run into is that VFP catches the message that is broadcast to all running processes to notify it that a change event has occurred. I'm not aware of a method to hook VFP's message queue directly.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform