使用opengl在windows窗体中绘图时闪烁的问题
2010-05-17 16:19
423 查看
OPENGL MFC 闪烁
The flicker occurs because Windows paints the background first and then OpenGL next. Since we have OpenGL doing the job of clearing the background, we'll turn off Windows from clearing the background. This can be done by editing OnEraseBkgnd() member function appropriately. We do this by returning true from the function.BOOL COpenGLView::OnEraseBkgnd(CDC* pDC)
{
// TODO: Add your message handler code here and/or call default
//comment out the original call
//return CView::OnEraseBkgnd(pDC);
//Tell Windows not to erase the background
return TRUE;
}
相关文章推荐
- C#关于Windows窗体最大化所引起的闪烁问题的处理经验
- Windows下WTL与MFC使用Invalidate()闪烁问题解决
- 如何使用 GDI+ 双缓冲 解决绘图闪烁问题
- Windows界面绘图使用缓冲区避免闪烁:MFC版本 和 GDI版本
- C# 绘图中的图片闪烁问题解决方法的使用结果
- C#关于Windows窗体最大化所引起的闪烁问题的处理经验
- 使用 GDI+ 双缓冲 解决绘图闪烁问题
- c#中跨线程调用windows窗体控件 .我们在做winform应用的时候,大部分情况下都会碰到使用多线程控制界面上控件信息的问题。然而我们并不能用传统方法来做这个问题,下面我将详细的介绍。
- 在使用VC进行绘图时,屏幕闪烁问题
- Android使用toolbar设置了fitSystemWindows = “true”的时候当edittext弹出了软键盘时toolbar被拉伸的问题
- win7 下使用vb开发工具拖动控件时出现控件闪烁问题的解决方法
- 解决windows使用rsync同步到Linux权限问题
- VS2003下windows media player 控件的使用问题
- windows程序设计之绘图基础之LineDraw问题解决
- Windows Live Writer 绿色便携版(使用问题及安装)(转)
- Windows 8 系列(五):Windows App Cer Kit(Certification Kit)的使用与相关问题
- 在IE浏览器中使用Windows窗体控件(三)
- .net2005 Windows 窗体上使用的控件
- 解决Windows 程序界面闪烁问题的一些经验
- Windows用户界面编程中的界面闪烁问题