PDA

Click to See Complete Forum and Search --> : translating chars


KENNNY
Dec 22nd, 2000, 01:31 PM
how can i translate characters i receive in WM_KEYUP/DOWN in windowproc?
i mean: if shift is pressed, i want the char to be uppercase, if not, lowercase, etc.

KENNNY
Dec 23rd, 2000, 07:28 AM
cmon..no ideas??
will have to write a *manual* one..which won't be good cos it won't take it into account locale.

KENNNY
Dec 26th, 2000, 06:03 PM
im not using forms
im handling messages directly (window was made with createwindow)
i want the API to translate it for me :)

Jop
Dec 26th, 2000, 07:20 PM
Well maybe you should check out these api calls:

Public Declare Function CharUpper Lib "user32" Alias "CharUpperA" (ByVal lpsz As String) As String
Public Declare Function CharLower Lib "user32" Alias "CharLowerA" (ByVal lpsz As String) As String

KENNNY
Dec 27th, 2000, 06:55 PM
nope, i want a call that translates the keycode from WM_KEYUP message (the lparam) to either upper or lower case according to if shift is pressed and according to keybrd layout (US/europe numbers at top r different).