Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Enter .exe without a click
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Installation et configuration
Divers
Thread ID:
00494581
Message ID:
00494978
Vues:
17
>George,
>
>Sorry .. didn't work. I've actually lived with this for some time and there hasn't been complaints. I'm the picky one and don't like the behavior.
>
Robert,

I don't blame you. I'd do the same. If you're interested it trying another API shot, try this...

Rather than using SetWindowPos(), I'd try SetForegroundWindow(). I'm not sure (off the top of my head) if the relation between the VFP screen is such that FindWindow() would work. If the top-level is a child window of the _SCREEN, it won't work. I investigated this once, and I don't think that it is, but I'm not 100% sure. Anyway, I digress...here's what I'd try: Load Foxtools and get the window handle of the form using -
lnhwnd = _WhTohWnd(_WFindTitl(< form caption >))
then
DECLARE INTEGER SetForegroundWindow IN Win32API;
  INTEGER hWnd
= SetForegroundWindow(lnhwnd)
It may, however, be a Win2K issue. I don't know.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform