Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Promoting a instance to the foreground
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00196360
Message ID:
00196695
Views:
20
>>I need to run multiple instances for a 2.6 program and promote one of the background instances to the foreground. Does foxtools have something like setforground(handel)?
>
>If this is in Windows you can use (at least in VFP5):-
>
>declare long SetForegroundWindow in "user32" long hWnd
>
>and call
>
>SetForgroundWindow(hWndThis)

It's 2.6, so the DECLARE notation isn't available, and the obvious problems of knowing the hWnd of each instance, and more importantly, the lack of a 16 bit implementation of SetForegroundWindow (FPW can call Win16 DLLs without a problem, but the API call here is made via a Win32 DLL)

He may be able to get at Win16 equivalents via FoxTools' REGFN() and CallFN() commands, but the problem still remains of how to identify the hWnd of each running instance.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform