Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
EXE forced in front of other EXE at runtime
Message
 
À
08/04/2015 13:25:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01618033
Message ID:
01618097
Vues:
50
>>Hi Gang!
>>
>>Questioin.....
>>
>>Given 2 VFP programs running as EXE's on a given PC.
>>
>>The 1st program, POS.exe is running in it's own window.
>>
>>The 2nd program, called EZSign.exe runs minimized to the taskbar, but pops up to the forefront when needed by calling the WindowState property when needed.
>>
>>Thisform.WindowState = 0 && Normal
>>_Screen.WindowState = 0 && Normal
>>
>>
>>Thisform.WindowState = 1 && Minimized
>>_Screen.WindowState = 1 && Minimized
>>
>>
>>But this does not always get the EZSign program to display in FRONT of the POS program ( by design, we wanted the EZSign to popup up IN FRONT of the POS program, then disappear back to the taskbar when needed.
>>
>>How would YOU go about making the EZSign program pop up in front of the POS program when needed, then disappear back to the taskbar when not wanted to be visible or in front of the POS program??
>>
>
>Use the BringWindowToTop API function.
>
>Tamar

Is this ok ???

DECLARE INTEGER FindWindow IN user32 STRING lpClassName, STRING lpWindowName
DECLARE INTEGER BringWindowToTop IN user32 INTEGER hWindow

hWnd = FindWindow(Null, Thisform.Caption)
BringWindowToTop(hWnd)

and place it in the forms ACTIVATE in question, to force it to the FRONT of the other EXE's running ??

Thanks a bunch!
Tommy Tillman A+ NetWork+ MCP
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform