Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bring forward another application that's minimized
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00156909
Message ID:
00156929
Vues:
25
Thanks, George. I'm way ahead of you in using your Is_Run function. It works great. The IsIconic function is handy. Now I can leave the window state alone if it's not minimized.

>First, you need the window handle. It'd probably be easiest to use my Is_Run function from the download section to retrieve that value, then:
>DECLARE INTEGER ShowWindow IN Win32API;
>  INTEGER hwnd, INTEGER nCmdShow
>DECLARE SHORT IsIconic IN Win32API;
>  INTEGER hwnd
>DECLARE SHORT SetForegroundWindow IN Win32API;
>  INTEGER hWnd
>* lnhWnd is the window handle
>IF (IsIconic(lnhWnd) # 0)
>  * 9 = SW_RESTORE
>  * Restore the window
>  = ShowWindow(lnhWnd, 9)
>ENDIF
>= SetForegroundWindow(lnhWnd)
>I think that I also saw a file in the download section that may do this automatically for you.
>
>hth,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform