Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simple Application
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00278192
Message ID:
00278659
Vues:
16
>>>>Thanks! that works great, the only problem I have now is when I run the program (executable), the program goes to the bottom of all of my programs instead of being on top. any ideas?
>>>
>>>Not sure what you mean.
>>
>>say I have Outlook running and a the folder that contains my program. I double click the exe and the program loads, but it is underneath Outlook and my folder. So I have to alt-tab to it even though I just switched to it.
>
>Not how to fix this. Try posting this as a new question so that others can spot it.

Try using

declare long SetForegroundWindow in "user32" long hWnd

SetForeGroundWindow(some_hDC)

You'll have to find out how to get the vfp hDC from windows - I've only ever used getDeskTopWindow() when VFP is active, but I'm sure you can search here for the answer (it might be FindWindow() or some such, unless VFP holds a pointer somewhere).
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform