GDI fast scroll
Posted
by genesys
on Stack Overflow
See other posts from Stack Overflow
or by genesys
Published on 2010-05-24T13:34:28Z
Indexed on
2010/05/24
15:21 UTC
Read the original article
Hit count: 358
Hi!
I use GDI to create some custom textwidget. I draw directly to the screen, unbuffered.
now i'd like to implement some fast scrolling, that simply pixelshifts the respective part of the framebuffer (and only redraws the newly visible lines).
I noticed that for example the rich text controls does it like this. If i use some GDI drawing functions to directly draw to the framebuffer, over a rich text control, and then scroll the rich text, it will also scroll my drawing along with the text. so i assume the rich text simply pixelshifts it's part of the framebuffer.
I'd like to do the same, but don't know how to do so.
Can someone help? (independant of programming language))
thanks!
© Stack Overflow or respective owner