Hmm. Well I started to add line numbers to the left side of a RichEdit control using EM_SETMARGINS to set the width of the left side and then I thought I would just paint in that area of the screen. Well paintings not a problem, but the EM_SETMARGINS itself forces a redraw and since I need to do this update (ideally) in the WM_PAINT message, it confused the vertical scrollbar something bad with the multiple repaints. Is there a better way to do this? Perhaps I should not be placing this stuff in the margins but instead the non-client area?
hi graebel,
check this thread out: http://www.asmcommunity.net/board/index.php?topic=4224 . the last post in the thread describes a method on how he added his numbers to his richedit.
also did you check out KitilO's example of how he added numbers to his richedit? http://www.asmcommunity.net/board/index.php?topic=3876
maybe these could help you.
check this thread out: http://www.asmcommunity.net/board/index.php?topic=4224 . the last post in the thread describes a method on how he added his numbers to his richedit.
also did you check out KitilO's example of how he added numbers to his richedit? http://www.asmcommunity.net/board/index.php?topic=3876
maybe these could help you.