How to update one region of the view...
Posted on 2004-08-16
I've got a large, double-buffered, scrollable view in an SDI app. When the user clicks in the view, the corresponding value in the document is toggled, and the the view needs to be updated to show the change.
Currently I just Invalidate() the view and cause it to be redrawn, but it's big enough that it's just too slow to redraw the whole thing every time the user interacts with it. I am trying to figure out how to update just a small region of the view. I would like to be able to update a region without going through all the nested loops of the OnDraw() function (I know that you can use clipping regions so that OnDraw() only updates a specific region, it would still take too long to go through everything I have in there).
Thanks for your help, experts!