Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FoxPro 2.6 and API
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00224528
Message ID:
00224783
Views:
28
>Hi Christian,
>
>BringWindowToTop() exists in the 16 bit version of Windows. Of course, you'll have to load foxtools and use RegFN and CallFN like this:
>m.bringtop = RegFN("BringWindowToTop", "I", "I")
>* m.whnd is the handle of the window to bring to the top
>m.result = (CallFN(m.bringtop, m.whnd) # 0) && m.result will be .T. if it works
>As for getting the window handle. Check the download section for my Is_Run function (under Win32 and Other APIs titled "Is a Windows Application Running"). The file contains both 16 and 32 bit versions.
>
>hth,

Hi George,
Good stuff, it's working. With a small problem which I still have, that the window will not be restored(or maximized), if it is minimized.
I did not find out why, but maybe you have an idea.
Thank's alot so far!
Christian Isberner
Software Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform