How to avoid Flickering in my SDI application?

2019-09-11 23:10发布

问题:

I created an SDI application in vc++ having multiple views in it. When i re-size the SDI application it is getting flickered. I tried returning "TRUE" in "oneraseBackGround" function. But that is causing my application refresh issue.

Please guide me on the same.

回答1:

You need to use double-buffering. Let me share with you an interesting link where a class which solves your problem is implemented:

http://www.codeproject.com/KB/GDI/flickerfree.aspx

I hope it can solve your problem.



标签: mfc