Yes, Your Honor. But when I run my Foxpro app, the ForegroundWindow
would become my app,
The ForegroundWindow always have the caret if and only if it accepts
keyboard input!

So does Windows remember the thread holding the caret before launching
a new window?
And if it does, how could I read that value?

I got an idea: If I could code my Foxpro app such that it did NOT
accept any input
in the very beginning (no edit, no textbox, ..), then the Foxpro app
would not show
a caret. That way, I could find out the last thread that had the caret.

On Sat, Mar 10, 2012 at 10:35 PM, Tracy Pearson <[email protected]> wrote:
>>Now the problem is: I must SetForegroundWIndow() first in order to
>>find the hWnd that got the caret.
>
> Isn't the window that has the current focus, the window that has the active 
> carat.
> Otherwise, I believe it would be the first child window of the application 
> you are
> wanting to send the keystroke to.

-- 
 .~. Might, Courage, Vision. SINCERITY!
/ v \ 64-bit Ubuntu 9.10 (Linux kernel 2.6.39.3)
/( _ )\ http://sites.google.com/site/changmw
^ ^ May the Force and farces be with you!

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/CAGv=MJAYGUfqZRf0eqdWoPesmQxWNGkwaGGwoO=ahr53xmy...@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to