On 5/11/05 20:50:44, Gerhard Fiedler wrote:

> It seems you return the value from GetSystemDefaultLangID(). What I was
> looking for is the result of GetKeyboardLayout(). This function needs as
> argument a thread ID (or 0 for the active thread). 

Ok, I managed to compile a version of win.dll that returns
GetKeyboardLayout(0). (Thanks for pointing me in this direction :) 

It still returns always the same value. The next question I have is
when/how this plugin function gets called.

I have a bar displayed on top of the window title bar (position: right
caption). In this bar I use "*Info expr(win.currentlang)". win.currentlang
basically returns the result of GetKeyboardLayout(0) -- that is, the
language of the current thread.

It seems that at the time this plugin function gets called, the current
thread is not the one of the current window... So it seems I need a way to
get the thread id of the current window -- that is, the window where the
bar gets drawn on the title bar. Any (easy?) way to get to this?

Thanks,
Gerhard


Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to