如何避免在我的 SDI 应用程序中闪烁? [英] How to avoid Flickering in my SDI application?

查看:39
本文介绍了如何避免在我的 SDI 应用程序中闪烁?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 vc++ 中创建了一个 SDI 应用程序,其中有多个视图.当我重新调整 SDI 应用程序的大小时,它会闪烁.我尝试在oneraseBackGround"函数中返回TRUE".但这导致了我的应用程序刷新问题.

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.

请指导我.

推荐答案

您需要使用双缓冲.让我与您分享一个有趣的链接,其中实现了一个解决您问题的类:

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.

这篇关于如何避免在我的 SDI 应用程序中闪烁?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆