Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bringing another application window to top. Any help?
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00099111
Message ID:
00099382
Views:
20
>>>How can i bring the Microsoft excel window (ie) to top from vfp?
>>
>>Use the FindWindow and ShowWindow API Calls. The Find will give you the Window Handle and Show will use that Handle.
>>
>>HTH
>
>Where can i get the declarations and sintax of theese functions ?. Thanks

Carlos,

You can find the declarations for the functions ShowWindow(), etc. elsewhere in this thread. However, I don't think that FindWindow() is going to work for you in this case. Unfortunately, FindWindow() requires that the exact title of the window be passed and is case sensitive to boot. Since Excel has a dynamic title bar, showing the open selected file, this is difficult, if not impossible to know. Optionally, you could pass it the class name of the window, but there's no guarantee that it won't change between versions. That's why I recommended the Is_Run32 function.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform