Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is the easiest way to get Window handle value?
Message
From
26/09/1997 20:26:54
 
 
To
24/09/1997 18:50:09
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00051377
Message ID:
00051890
Views:
41
Vlad,

I tried your GetForegroundWindow() Win32API call plus all the others
before your response....

All of them are invalid for the current window except for one Win32
call called GetWindow()......For some reason, that one works...
I proved it by calling the GetWindowText() function with the handle
that GetWindow() returned....

Anyway, I'm able to get a currently selected handle....

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...

Any ideas?

Jon

---------------------

>Hi Jon!
>
>Personally, I'm using GetForeGroundWindow function
>
>declare integer GetForegroundWindow in Win32Api
>lnhwnd =GetForegroundWindow()
>
>* Beggars cannot be choosers
>
>>I need to be able to get the actual handle number of a form to feed to
>the
>>OCX SDK call...
>>like 'hWnd=GetHandle()' or some variation...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform