在Childview窗口中闪烁整数 [英] Flashing integers in Childview windows

查看:76
本文介绍了在Childview窗口中闪烁整数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写了一个简短的windows程序来显示一个数独拼图的9x9数组。据我所知,它工作正常,没有错误消息...除了整数值似乎闪烁。该程序是使用VS 2015中的MFC向导设置的,因此
显示在Childview窗口中。有关稳定抖动/闪烁数字的任何建议吗?

I wrote a short windows program to display a 9x9 array for a sudoku puzzle. As far as I've gone, it works properly, and has no error messages ... except the integer values appear to be flashing. The program was set up using an MFC Wizard from VS 2015, so the display is in the Childview window. Any suggestions for stabilizing the jittery/flashing numbers?

谢谢,

Glen A Goodale

Glen A Goodale

推荐答案

当你调整窗口大小或其他情况时会发生这种情况吗?提供有关绘图程序的一些细节。减少闪烁的已知方法:使用中间图像( CMemDC )并避免绘制不必要的背景( WM_ERASEBKGND )。

Does this happen when you resize the window, or in some other circumstances? Give some details about the drawing procedures. Known ways to reduce flickering: using an intermediate image (CMemDC) and avoiding painting of unnecessary background (WM_ERASEBKGND).

由方式, CFormView 类型的子视图允许您将数字放入81个静态或编辑控件,以编程方式创建或使用对话框编辑器。

By the way, a child view of CFormView type allows you to place the numbers into 81 static or edit controls, created programmatically or with Dialog Editor.


这篇关于在Childview窗口中闪烁整数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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