Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Internet Explorer Window appears minimized
Message
From
14/08/2001 14:54:34
 
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00543645
Message ID:
00543682
Views:
29
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform