c++ - Refreshing of image upon OnVScroll -
i trying display large data set graph. unfortunately causes flickering onpaint()
called multiple times during update. , @ same time not need graph updated constantly; once upon loading program sufficient.
i found way solve overriding onerasebkgnd()
return 1 everytime updates. however, side effect of when vertical scrolling, graph "cut off" if scroll far.
bringing scroll end cut-off graph, not repaint (because not redraw graph in onpaint()
anymore).
in essence, looking for, method repaint graph, if , if gets "cut off", due scrolling view.
thanks!
the mfc sample in msdn named drawcli example program includes image scrolling , using off-screen bitmap eliminate flicker. works well.
Comments
Post a Comment