Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Restoring VFP from an inactive state on the start bar.
Message
De
23/09/1999 10:43:38
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
23/09/1999 10:21:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00267958
Message ID:
00267973
Vues:
17
>I am looking for information on how to restore VFP from an inactive state on the start bar to become the active window on the desk top. I have a form that includes a timer. The timer is set up to send a message to the user r.e. steps they need to take in the program. What I want to do is force VFP to become the active window irregardless of what the user may be doing at the time and what state VFP may be in. I would like to do this from within the timer on my form.
>
>I am hoping there is a property within VFP that would allow me to activate an inactive window or activate VFP from an inactive state on the start bar to become the active window.
>
>Any assistance would be appreciated.
>
>Thank You


This could help you partially till a better reply arrives :)
DECLARE integer GetForegroundWindow in WIN32API
DECLARE integer SetForegroundWindow in WIN32API integer nHwnd
lnHwnd = GetForegroundWindow()	&& Save window handle
* Go another form minimize fox
start=seconds()
do while seconds()-start < 30
enddo
=SetForegroundWindow(lnHwnd)
Clear dlls
Foxtools.fll could also be used to get fox hWnd. In win98 and up, just the icon in bar flashes (Acoording to docs there are quite a number of things preventing it to restore).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform