Questions tagged [richedit-control]
33 questions
0
votes
2 answers
mfc richedit2 formatting
I am trying to use a rich edit control to output some text on the screen:
Monday Press 1.
Your day is Monday
Tuesday Press 2.
I can't really find any simple examples of how to do this. all i have been able to sort out is setting the window…

Jason
- 2,147
- 6
- 32
- 40
0
votes
1 answer
Current index of a letter in OnKeyDown
I am trying to get the current index of the letter that typed in during OnKeyDown event.
For example, if I have a text in RichEdit Control as "MOVS,21"
I would like know the index of "(" when I change the string to "MOV(S,21" in the event…

balan
- 179
- 1
- 5
- 11
-1
votes
4 answers
EM_EXGETSEL does not relate to text selection order. How do I do determine the caret position in a piece of selected text?
When I do:
SendMessage(editControlHWND, EM_EXGETSEL, 0, (LPARAM)&charRange);
I get the selected range of text. However, I want to know where the caret is in this selection, ie at the end, OR at the beginning.
ie, has the user selected the text…

Interminable
- 1,338
- 3
- 21
- 52