Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Make FoxPro top window automatically with a timer
Message
 
À
06/09/2001 14:51:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00553209
Message ID:
00553342
Vues:
23
That's easy, if you put the declaration and the call together:

DECLARE INTEGER FindWindow IN Win32API STRING, STRING
hWnd = FindWindow(0,THIS.CAPTION)

FindWindow takes 2 parameters type STRING and their values are 0 and THIS.CAPTION, and returns an integer hWnd, the window handle



DECLARE INTEGER SetForegroundWindow IN "User32.dll" INTEGER
not used=SetForegroundWindow(hWnd)

SetForegroundWindow takes 1 parameter type INTEGER, the hWnd and returns an INTEGER that in your example is not used.
Doru
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform