MFC无法绘制任何东西 [英] MFC can't draw anything
本文介绍了MFC无法绘制任何东西的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我把我的代码放在Ondraw中,
但是当我运行代码时,我看不到任何东西,它只是空白
视觉体育场没有给出任何建议
I placed my code in Ondraw,
but when i run the code,i can't see anything,it is just blank
the visual stadio didn't give any advise
推荐答案
检查您是否在CView派生类中。 CView调用ondraw(对话框使用WM_PAINT-OnPaint())。
希望它有所帮助。
Check if you are in a CView derived class. CView calls ondraw (dialogs use WM_PAINT-OnPaint()).
Hope it helps.
请显示你的屏幕截图
因为可能有很多原因
please show your screen shot
because it may be many reasons
这篇关于MFC无法绘制任何东西的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文