Information générale
Catégorie:
Codage, syntaxe et commandes
Here is what we do:
lcCaption = "Your Program Caption Here"
Local lnHWND
Declare INTEGER BringWindowToTop IN Win32APi INTEGER
Declare INTEGER FindWindow IN Win32Api INTEGER, STRING
lnHWND = FindWindow(0, lcCaption)
If lnHWND <> 0
BringWindowToTop(lnHWND)
Return
Endif
_SCREEN.CAPTION = lcCaption
This has worked well, it even brings the application to the front if its already openned.
I'm pretty sure I got this code segment from UT files section.
Hope it helps,
Bryan Smith
Précédent
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