0

I have an MFC SDI application and I want to send a message from the MainFrm class to the View class. How do you get a view class from an associate MainFrm class in MFC?

2
Contributors
1
Reply
2
Views
11 Years
Discussion Span
Last Post by Ancient Dragon
0

The CWinApp-derived class contains a list of CDocTemplate objects. You can iterate through that to find the pointer to CDocument class. From CDocument iterate through the list of CView classes that are attached to the document. I know this seems a long way around to get to the CView class but I think its the only way from CMainFrame.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.