问题描述
我的主窗口有CMainFrame类,AppWizard生成我的视图的CChildView类。我有其他手写的类,所以我想把我的CMainFrame类作为我的操作中心。我打算将CChildView类MessageMap中的消息重新路由到CMainFrame类MessageMap。我已经尝试过使用SubclassWindow()函数,但是从一些我甚至不知道存在的库文件中继续得到错误(我是MFC的新手)。我需要帮助重新路由这些消息。指针将受到高度赞赏。谢谢。
I have CMainFrame class for my main window, and CChildView class for my view as generated by AppWizard. I have other handwritten classes, so I want to make my CMainFrame class as my center of operations. I intend to reroute the messages in the CChildView class MessageMap to CMainFrame class MessageMap. I''ve tried using SubclassWindow() function, but keep getting errors from some library files which i didnt even know exist (I''m new to MFC). Please I need help rerouting these messages. A pointer will be highly appreciated. Thanks.
推荐答案
这篇关于如何在CMainFrame MessageMap中处理CChildView消息。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!