Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is the easiest way to get Window handle value?
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00051377
Message ID:
00051992
Views:
41
George,

That's the problem....Maybe I didn't make myself clear on that point...

If you define two windows and get the correct handle # for the first
while positioned in the second, SetFocus(hWnd1) will not reset the
focus....

This can all be done from the command window (or 2 small .prg files)
after the Declares for the Win32 API calls....

It looks like a bug to me....:)

Thanks for double checking....I thought I was going nuts....

Jon

---------

>>>On another note, If I create two windows, I should be able to do a
>>>SetFocus(hWnd) to change the focus to the first window I create if
>>>I am currently in the second window.... It doesn't seem to work...
>
>Vlad,
>
>GetForegroundWindow works fine for getting the parent window handle (which is also available from FOXTOOLS).however, I believe that the problem is in getting the child window handle.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform