Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Activate Window using hWnd
Message
 
To
06/01/2005 12:33:48
Joel Leach
Memorial Business Systems, Inc.
Tennessee, United States
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00974484
Message ID:
00974869
Views:
68
>Hi George,
>
>>
>>While I know you have your answer, an altenative is the SetActiveWindow() function. You only need to pass the window handle as a parameter.
>>
>
>Actually, I couldn't get that to work. It seems that it works with top-level windows only, i.e. _VFP.hWnd, but I could have been doing something wrong.

Joel,

The only things I can think of are rather than passing _VFP.hWnd you try either _SCREEN.hWnd or _SCREEN.Forms(1).hWnd.

Don'y forget that _VFP.hWnd is the frame and _SCREEN.hWnd is the desktop.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform