Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bring to Front - My Application Window
Message
From
05/04/2000 09:54:35
 
 
To
05/04/2000 06:31:59
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00355566
Message ID:
00355644
Views:
26
>Can I just ignore any other application windows and bring my application window to the frontmost? Would you pls tell me the API call to do this?
>

You can use SetForegroundWindow() or ShowWindow() with a flag value of 5 to bring the app in its current state (maximized or normal) and direct keyboard input to it. You need the hWnd of the VFP application; there's a function in FoxTools that will give this to you, or you can use GetActiveWindow() at a time where you know your own application has focus in the top window you want.
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
Next
Reply
Map
View

Click here to load this message in the networking platform