Register
Site Login
Site Search
Forums
Advertisement
Welcome to PocketMatrix. PocketMatrix is dedicated to providing the best online community for mobile device developers and enthusiests. What's new?

Problem with WM_CHAR vs. WM_KEYDOWN on some devices


Problem with WM_CHAR vs. WM_KEYDOWN on some devices

Postby drgoldie » May 29, 2007 @ 1:50pm

I have problems reading keyboard input from several smartphones. The issue is that when I use WM_KEYDOWN I always get a virtual key code (VK_XXX), which is fine.
But since some keys have multiple mappings on some phones (e.g. numbers, capital & small letters) I need the actual character that the user wanted to type rather than the key he pressed. As far as I know the correct way to do that is to use WM_CHAR.

My problem is that WM_CHAR works fine on the PC, in the WM5&6 emulators
and on some phones (e.g. the TyTN), but not on the Excalibur and MotoQ phones. On the Excalibur and MotoQ I get exactly the same WM_CHAR messages as I
get for WM_KEYDOWN, which means I can not read the characters ('a'-'z',
'A'-'Z')), but only get numbers ('0'-'9') on those keys that are multi-used.

Any ideas?

thx,
Daniel
drgoldie
pm Member
 
Posts: 330
Joined: Jan 10, 2003 @ 10:46am
Location: Vienna


Postby drgoldie » May 31, 2007 @ 1:23pm

I was actually able to solve the problem calling

HIMC hC = ImmGetContext(m_hwnd);
ImmSetOpenStatus(hC, TRUE);

after window creation...

Daniel
drgoldie
pm Member
 
Posts: 330
Joined: Jan 10, 2003 @ 10:46am
Location: Vienna


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron