Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ImmGetContext

279 views
Skip to first unread message

Andreas Johansson

unread,
Sep 6, 2004, 6:12:40 AM9/6/04
to
Hi,

I'm trying to retrieve the input context with ImmGetContext() but it always
returns NULL. Anybody that knows what could be wrong?

Regards
Andreas


Sten Westerback

unread,
Sep 6, 2004, 2:03:17 PM9/6/04
to

"Andreas Johansson" <and...@decuma.com> wrote in message
news:413c3818$1...@news.wineasy.se...

> Hi,
>
> I'm trying to retrieve the input context with ImmGetContext() but it
always
> returns NULL. Anybody that knows what could be wrong?

Your unknown source code... maybe you should post the relevant fragments of
it? :)

- Sten


Simon

unread,
Sep 6, 2004, 8:12:19 PM9/6/04
to
Since it's only a single variable function, my guess is that you're
simply putting in the wrong value for HWND... Really, it can't be much
more than that.

Simon Hayden
http://www.AutoUpdatePlus.com
Get software updates to your clients the Quick and Easy way!
Latest Version ==========>>> Client Computer

Andreas Johansson

unread,
Sep 7, 2004, 3:30:33 AM9/7/04
to
Here is the source:

HWND hWnd = GetForegroundWindow();
HIMC himc = ImmGetContext(hWnd);

And ImmGetContext() always returns NULL. Note that I'm not the owner of the
foreground window if that has something to do with it.

/Andreas

"Simon" <sup...@autoupdateplus.com> skrev i meddelandet
news:8bfaa276.04090...@posting.google.com...

0 new messages