Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>>>>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement