General information
Category:
Windows API functions
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only