为什么对话框闪烁? [英] Why the dialog twinkle?

查看:87
本文介绍了为什么对话框闪烁?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我是MFC的新手.上个月,我使用MFC和Vega Primer编写了一个程序,Vega是一个实时3D仿真开发软件套件,它提供了许多库.在我的程序中,我使用Vega创建一个窗口.我将此窗口粘贴到MainFrm.然后在顶部创建一个透明对话框.当我在Vista和Win7上运行程序时,它运行良好.但是当该程序在Win XP上运行时,透明对话框将闪烁.
希望您理解我的问题.感谢所有回复!
问候!
winshing

Hi,
I''m a newer on MFC . Last month, I wrote a program using MFC and Vega Primer.Vega is a real-time 3D simulation development software kit.It provides many library. In my program,I create a window using Vega. I paste this window to the MainFrm.Then I create a transparent dialog on the top.when I am running my program on the Vista and Win7,it run well.But when this program runs on the Win XP ,the transparent Dialog will twinkle .
Hope you understand my issue.Thanks for all replies!
regards!
winshing

推荐答案

如果问题如mbue所示,您可以通过在运行时检测操作系统来解决该问题,对于XP及更低版本的XP,请关闭屏幕,然后使用bitblt创建更平滑的图形.不过,该方法也适用于Vista和Win7,因此也许您可以一直使用此技术.
If the problem is as mbue suggests, you can probably overcome the problem by detecting the OS at run-time, for XP and older, draw off screen then use bitblt to create smoother graphics. This method should also work for Vista and Win7 though, so maybe you can just use this technique all the time.


这篇关于为什么对话框闪烁?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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