views:

15

answers:

1

Can i know or create a message which tells if the cursor moved to up or down a line in edit control?

A: 

You'd want a rich edit control to get a message for that, EN_SELCHANGE notification. EM_GETSEL and EM_EXLINEFROMCHAR to map the caret position to a line number.

Hans Passant