VS2013调试窗口刷新代码,VS2013总是丢失响应,怎么办? [英] VS2013 debug window refresh code, VS2013 always loses the response, how to do?
本文介绍了VS2013调试窗口刷新代码,VS2013总是丢失响应,怎么办?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
case WM_PAINT:
hdc = BeginPaint(hWnd,& ps);
// TODO:添加你的代码......
DrawTest(hWnd,hdc); // < -debug location,添加断点,对VS2013的响应丢失
EndPaint(hWnd,& ps);
break ;
case WM_DESTROY:
解决方案
调试WM_PAINT是有问题的,因为它与GUI交互。我的建议是添加一些TRACE输出,只有一个绘制语句一个接一个,以查看问题所在。
在你的情况下,我们需要看看是什么DrawTest。也许VS2013不是那么完美:-O
VS2013 debug window refresh code, VS2013 always loses the response, how to do?
case WM_PAINT:
hdc = BeginPaint(hWnd, &ps);
// TODO: add your code...
DrawTest(hWnd, hdc); //<-debug location,add a breakpoint,loss of response to VS2013
EndPaint(hWnd, &ps);
break;
case WM_DESTROY:
解决方案
Debugging WM_PAINT is problematic because it interacts with the GUI. My tip is to add some TRACE output and only a single draw statement after one other to see where the problem is.
In your case we need to see whats in the DrawTest. Maybe the VS2013 isnt so perfect :-O
这篇关于VS2013调试窗口刷新代码,VS2013总是丢失响应,怎么办?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文