I've derived a richedit control class and using it as some sort of language editor
with such a behavior
suppose what i've key in in the editor is 3 line like this (with cursor at first '100'
mov 100 101 0
org 100 999 0
when i pressed ENTER, cursor should go to '101'
if i press arrow key, it should go to next line, with cursor at 'org'
if i press BACKSPACE, cursor should go to mov
only predefined 'command' (i.e. org, exit, mov is allowed to be entered into editor.
problem i face is, i dunno how to control cursor position
pls give somecode to help me doing this. I think i'll handle it in CMyRichEditCtrl::Onkeydown()