Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GetActiveWindow()
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00066419
Message ID:
00066428
Views:
50
Do you know the window name(s) that your looking for in advance?
Could you use Findwindow()



>Hi Chris,
>Yes, both tests that I ran (in VFP5 and in VB5) call the function from a timer. Very unlikely that both VFP and VB5 misbehave when not active.
>
>
>>>I am trying to get window handles of other applications from my app, and I've been using succesfully GetActiveWindow in VB3.0 (16bit). I am trying to do the same thing from VFP with DECLARE Long GetActiveWindow IN user32 (which declares it, no problem), but when it comes to running it I cannot get the handle of any other applications' window (returns 0), though it returns the correct handle when the VFP app running the function is active.
>>>What am I missing? BTW, the function behaves identically in VB 5.0, so my problem must be something inherent to the GetActiveWindow function IN user32.
>>>TIA
>>>Sorin
>>
>>Do you have you function being called from a timer. (You must)
>>
>>I have had problems in VFP where the timer doesn't execute
>>unless fox is the active application.
Chris
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform