Find which thread controls the HWND?

Hello
I need to find out ID of the thread controlling a given HWND. How can I do
that?
In general, I intercept a WM_CHAR message, so I know the target HWND, and
I need to find out what locale is active for that window (not my app).
Thanks
[262 byte] By [Delta-Z] at [2007-11-18 17:35:20]
# 1 Re: Find which thread controls the HWND?
Nevermind... I got answered elsewhere: GetWindowThreadProcessId
Can the moderator delete this post?
Delta-Z at 2007-11-9 13:55:52 >
# 2 Re: Find which thread controls the HWND?
[Moved thread]
Andreas Masur at 2007-11-9 13:56:52 >
# 3 Re: Find which thread controls the HWND?
Originally posted by Delta-Z
Can the moderator delete this post?
Yes...we could, however, I prefer to leave the question here, so that others doing a search for the same problem can find the answer...
Andreas Masur at 2007-11-9 13:57:51 >