Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Enter .exe without a click
Message
General information
Forum:
Visual FoxPro
Category:
Installation, Setup and Configuration
Miscellaneous
Thread ID:
00494581
Message ID:
00495005
Views:
20
>>George,
>>
>>Sorry .. didn't work. I've actually lived with this for some time and there hasn't been complaints. I'm the picky one and don't like the behavior.
>>
>Robert,
>
>I don't blame you. I'd do the same. If you're interested it trying another API shot, try this...
>
>Rather than using SetWindowPos(), I'd try SetForegroundWindow(). I'm not sure (off the top of my head) if the relation between the VFP screen is such that FindWindow() would work. If the top-level is a child window of the _SCREEN, it won't work. I investigated this once, and I don't think that it is, but I'm not 100% sure. Anyway, I digress...here's what I'd try: Load Foxtools and get the window handle of the form using -
lnhwnd = _WhTohWnd(_WFindTitl(< form caption >))
then
DECLARE INTEGER SetForegroundWindow IN Win32API;
>  INTEGER hWnd
>= SetForegroundWindow(lnhwnd)
It may, however, be a Win2K issue. I don't know.


Thanks. I may try it just for the fun of it, if I get the time!
I'll save this message and try it some day!
Robert
Previous
Reply
Map
View

Click here to load this message in the networking platform