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:
00051968
Views:
50
>Hi John!
>
>Getforegroundwindow() retrieve the handle to most top-level window in
>hierarchy. IOW, if you have an application with toplevel form as main form,
>you will get the handle to this window...
>I'm using this function in my class Sysinfo for fiddling with window such
>as flashing etc...
>As for your second question: maybe Activate window will do the trick?
>
>>I tried your GetForegroundWindow() Win32API call plus all the > All of
>them are invalid for the current window except for one Win32
>>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.
George

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

Click here to load this message in the networking platform