消息问题!!谢谢!!
我在一工程中插入了一新类CCommunication(此类没有基类),但我要在此类中响应另一个类发出来的消息,那么该怎么做??具体看下面.
.h文件
afx_msg LONG OnCommunication(WPARAM ch, LPARAM port);
DECLARE_MESSAGE_MAP()
DECLARE_DYNAMIC(CCommunication)
.cpp文件
IMPLEMENT_DYNAMIC(CCommunication ) (这基类没有怎么写啊??????)
BEGIN_MESSAGE_MAP(CCommunication ) (这基类没有怎么写啊??????)
//{{AFX_MSG_MAP(CCommunication)
// ON_MESSAGE(WM_COMM_RXCHAR, OnCommunication)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()