Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Activate other apps
Message
 
 
À
30/06/2009 12:45:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Database:
Visual FoxPro
Divers
Thread ID:
01409215
Message ID:
01409409
Vues:
63
>What if the app is already opened - can I switch focus to the window and make it the foremost window?

If you know the caption of this application, try
DECLARE Long FindWindow IN WIN32API String ClassName, String WindowTitle
*DECLARE Long SendMessage IN WIN32API Long hWnd, Long Msg, Long wParam, Long lParam
 
lcWindowTitle = "RI Settings DM.JPG - Paint" && your caption goes there
 
hWnd = FindWindow( Null, lcWindowTitle )
IF hWnd <> 0
   declare integer SetForegroundWindow in win32api Integer

    SetForegroundWindow(hWnd)
endif
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform