How to find exactly for which Dialog class' DoModal() is called? RRS feed

  • Question

  • 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?

    Wednesday, January 7, 2015 4:48 PM