General information
Category:
Windows API functions
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
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