CEdit subclassing
-
Hi All, I have a pretty simple CEdit subclass that paints its background with a texture bitmap. When I use it in multi-line mode, with more text than will fit in the window, scrolling upward doesn't cause WM_ERASEBKGND to be sent, and so the top lines are drawn over the old content (yuk!). I've tried handling WM_CTLCOLOR- doesn't make any difference. Any ideas? Thanks NB
-
Hi All, I have a pretty simple CEdit subclass that paints its background with a texture bitmap. When I use it in multi-line mode, with more text than will fit in the window, scrolling upward doesn't cause WM_ERASEBKGND to be sent, and so the top lines are drawn over the old content (yuk!). I've tried handling WM_CTLCOLOR- doesn't make any difference. Any ideas? Thanks NB
can't you refresh the whole window? It doesn't work?
-
can't you refresh the whole window? It doesn't work?
-
I think you could refresh all the window by handling the ON_SCROLL message or something like that