Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FoxPro 2.6 Windows running Shellexecute
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00179403
Message ID:
00179597
Vues:
32
>Hi John,
>
>No problem, glad to be of help.
>
>Below I listed the defined constants for the ShowWindow API call, and examples in both FPW and VFP. The function returns a logical value (which you can't define in VFP). Non-zero will equal true.
>* nCmdShow values
>#define SW_HIDE             0
>#define SW_SHOWNORMAL       1
>#define SW_NORMAL           1
>#define SW_SHOWMINIMIZED    2
>#define SW_SHOWMAXIMIZED    3
>#define SW_MAXIMIZE         3
>#define SW_SHOWNOACTIVATE   4
>#define SW_SHOW             5
>#define SW_MINIMIZE         6
>#define SW_SHOWMINNOACTIVE  7
>#define SW_SHOWNA           8
>#define SW_RESTORE          9
>#define SW_SHOWDEFAULT      10
>#define SW_MAX              10
>
>* In VFP
>
>DECLARE SHORT ShowWindow IN Win32API;
>  INTEGER hwnd, INTEGER nCmdShow
>llresult = (ShowWindow(hWnd, nCmdShow) # 0)
>
>* In FPW
>
>m.showwind = RegFN("ShowWindow", "II", "I")
>m.result = (CallFN(m.showwind, m.hWnd, m.nCmdShow) # 0)
>hth,

Thanks again, just what the Dr. ordered.
John Harvey
Shelbynet.com

"I'm addicted to placebos. I could quit, but it wouldn't matter." Stephen Wright
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform