本文介绍了如何确切地找到调用哪个Dialog类DoModal()?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在MFC应用程序中工作,它有很多对话框。调试时我无法分辨哪个类或函数创建对话框。



为了说明问题,我创建了一个简单的基于对话框的MFC应用程序。在调试模式下运行它并暂停调试。



我可以看到使用CDialog :: DoModal()在调用堆栈中调用DoModal。我如何准确理解哪个函数以及从哪个类调用DoModal()?

解决方案

I am working in MFC application which has lots of dialog box. I am not able to tell which class or function created dialog box while debugging.

To illustrate the problem I have created a simple Dialog based MFC application. Run it in debug mode and pause the debugging.

I can see DoModal is called in call stack using CDialog::DoModal(). How do I understand exactly which function and from which class this DoModal() is getting called?

解决方案


这篇关于如何确切地找到调用哪个Dialog类DoModal()?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-16 08:37