Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return focus to the previous window
Message
De
22/09/2004 07:48:09
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00944426
Message ID:
00944919
Vues:
22
I don't understand what you mean but glad you solved somehow.
Cetin

>Hi.
>Somehow the seccess of this procedure depends on where was the last mouse-click on the form.
>Thank God my ultimate judges - the users decided they want the calculator minimized. So ThisForm.windowstate=1 was enough.
>Thanks for the answer.
>Kamil
>
>>If the called window's application is in foreground then this should work:
>>
>>* API Declarations
>>Declare Integer GetActiveWindow In Win32API
>>Declare Integer GetWindow In Win32API Integer HWnd, Integer dflag
>>Declare integer SetActiveWindow in win32API integer hWnd
>>
>>#define GW_HWNDNEXT         2
>>#define GW_HWNDPREV         3
>>
>>SetActiveWindow(GetWindow(GetActiveWindow(), GW_HWNDPREV))
>>Clear Dlls 'GetActiveWindow','GetWindow','SetActiveWindow'
>>
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