Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is VFP On Top?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00693560
Message ID:
00693584
Vues:
23
This message has been marked as the solution to the initial question of the thread.
>Hi All
>
>Is there any way to know if (a) my VFP application is the foremost active window and (b) whether the screen saver is running i.e. my app is not currently the active output window?
>
>TIA
>
Jos,

To answer (b)
#define SPI_GETSCREENSAVERRUNNING 114
DECLARE SHORT SystemParametersInfo IN Win32API;
  INTEGER uiAction, SHORT uiParam,;
  INTEGER @pvParam, INTEGER fWinIni
IF (SystemParametersInfo(SPI_GETSCREENSAVERRUNNING, 0, @lnvparm, 0) # 0)
  * The call succeeded
  * If lnvparm does not equal 0 it's running
ENDIF
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform