Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Win 2000 API
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Win 2000 API
Divers
Thread ID:
00407137
Message ID:
00407137
Vues:
63
In Win9.x and NT, the following code will force an open window to the foreground if it isn't minimized. If the window is minimized, the Task Bar icon flashes. In Windows 2000, the only affect is that the Task Bar icon flashes (the Window isn't minimized and cannot be minimized)

DECLARE INTEGER FindWindow IN Win32API STRING @lcWindowTitle, STRING otherstring
lnAppActive = FindWindow(0,lcWindowName)
IF lnAppActive > 0
DECLARE INTEGER SetForegroundWindow IN Win32API Integer
SetForegroundWindow(lnAppActive)
ENDIF

The window that is being called is an SDI form that is not maximized. I can't use the ShowWindow API function with the maximize parameter because it fully maxes the interface and skews all of the controls.

Any ideas? Any work arounds?

TIA
Dan
St. Petersburg, FL

"I started out with nothing and I still have most of it left"
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform