flat assembler
Message board for the users of flat assembler.

Index > Windows > to WM_SETTEXT or EM_STREAMIN or ...

Author
Thread Post new topic Reply to topic
moriman



Joined: 01 Apr 2006
Posts: 55
Location: Northern Ireland
moriman 02 Apr 2006, 21:06
Hi,

I am writing an app where the user will be able to enter text into a richedit control by using the physical keyboard or an onscreen keyboard (or a combination of both). What message should I send\use when the user clicks an 'on screen' key to get the richedit control to update correctly?
I know how to use BN_CLICKED etc to know that a button has been clicked and how to find which button it was, it's just how to translate an 'on screen' L (for example) into an L at the current cursor position in the richedit control. It just seems a rather long-winded way to have to WM_GETTEXT, insert the L into the buffer and then WM_SETTEXT to send it back to the richedit control.

Many thanks for any help anyone can give

mori
Post 02 Apr 2006, 21:06
View user's profile Send private message Reply with quote
shoorick



Joined: 25 Feb 2005
Posts: 1614
Location: Ukraine
shoorick 03 Apr 2006, 04:56
WM_CHAR
Post 03 Apr 2006, 04:56
View user's profile Send private message Visit poster's website Reply with quote
moriman



Joined: 01 Apr 2006
Posts: 55
Location: Northern Ireland
moriman 03 Apr 2006, 07:58
Excellent :p

Must have missed that one. Had been trying a combination of WM_KEYDOWN and WM_KEYUP which also pass the char, but these didn't word.

Many thanks

mori
Post 03 Apr 2006, 07:58
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
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 vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.