消息为什么响应不了啊??55555555555
我在工程中自己插入了一个新类(派生自CFrameWnd),现在要接受从另一个类中发出的消息,我是这么做的,为什么收不到啊??帮我看看,谢谢!!
// Generated message map functions
//{{AFX_MSG(CCommunication)
// NOTE - the ClassWizard will add and remove member functions here.
afx_msg LONG OnCommunication(WPARAM ch, LPARAM port);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
DECLARE_DYNAMIC(CCommunication)
//IMPLEMENT_DYNCREATE(CCommunication, CFrameWnd)
IMPLEMENT_DYNAMIC(CCommunication ,CFrameWnd)
BEGIN_MESSAGE_MAP(CCommunication, CFrameWnd)
//{{AFX_MSG_MAP(CCommunication)
// NOTE - the ClassWizard will add and remove mapping macros here.
ON_MESSAGE(WM_COMM_RXCHAR, OnCommunication)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
大家帮我分析一下,谢谢!