Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FindWindowA with Internet Explorer
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00739384
Message ID:
00739396
Views:
25
AFAIK, there is no such property, "Caption" for oie.
If you wish to get a window handle, use just:

hWndExp=oie.hwnd


>Hi, I am trying to bring Internet Explorer to the foreground using FindWindowA but run into a problem, I think with an incorrect classname? Not Sure. Can anyone help with this?
>Thanks
>Steve
>
> GetThisUrl = "http://www.levelextreme.com/wconnect/wc.dll?FournierTransformation"
>
> release oie
> *LOCAL oie as internetexplorer.application
> oie = createobject( "internetexplorer.application" )
> oie.Visible = .t.
> oie.Navigate( (GetThisUrl) )
>
>
> #DEFINE swp_nosize 1
> #DEFINE swp_nomove 2
> #DEFINE hwnd_topmost -1
> #DEFINE hwnd_notopmost -2
>
> *FindWindowA see pages 180 in Office Automation
> DECLARE LONG FindWindowA IN WIN32API STRING class, STRING title
> * set windo position
> DECLARE SetWindowPos in WIN32API LONG HWND, LONG hwndafter, ;
> LONG x, LONG y, LONG cx, LONG cy, LONG flags
>
> *Capture captions
> hWndExp = FindWindowA("IEFrame" , oie.Caption) ****<<---------------- the problem and error here
Previous
Reply
Map
View

Click here to load this message in the networking platform