Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ShowWindow - Problem getting VFP Top-level form to the t
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00320669
Message ID:
00321212
Views:
18
Hey George,

I got it all figured out. My framework incorporates top-level forms with dynamic window titles. I needed to insure only one instance of the application was running. The common method found here and other places is to compare the window’s title. This just wasn’t going to work for me so I started looking at the processes running on the machine as an alternative. The problem I was the number of hidden windows in each VFP process running. I was trying to ShowWindow the wrong window. I actually placed the test code in the file section under WIN32API & others APIs. It makes use of Ramon F. Jaquez's Enumerate Processes in Windows file under the same section. I use the win32api’s GetWindowThreadProcessId function to locate windows belonging to known processes the application is running in.

Thanks,
Bill


>Hi Bill,
>
>What's the context of this? Where is this code coming from?
Heavy Metal Pedal - click with care
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform