Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Internet Explorer Window appears minimized
Message
De
14/08/2001 14:54:34
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00543645
Message ID:
00543682
Vues:
31
>When create an object
>oie=createobject("internetexplorer.application")
>oie.visible=.t.
>
>the windows only appears in the taskbar minimized under windows 2000.
>Where I need to change the settings to authomatically maximize or become the active form.
>
>Thanks

You can do that with a combination of API calls:
DECLARE SHORT SetForegroundWindow IN USER32.DLL INTEGER hWnd

DECLARE INTEGER FindWindow IN Win32API;
STRING @lpClassName, ;
STRING @lpWindowName

oIE = CreateObject("InternetExplorer.Application")
oIE.Toolbar = .t.
oIE.Visible = .t.

lcApplicationTitle = "Microsoft Internet Explorer"
lnHWnd = FindWindow(0, @lcApplicationTitle)

SetForegroundWindow(lnhWnd)
Credits to the UT's Windows API collection.
HTH
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform