VC++MFC程序中,一个类只能有一个自定义的消息映射函数吗?可不可以有两个?
afx_msgLONGOnMessageCommunication(WPARAMch,LPARAMport);afx_msgvoidOnMessageElecBoard(...
afx_msg LONG OnMessageCommunication(WPARAM ch, LPARAM port);
afx_msg void OnMessageElecBoard(WPARAM wParam,LPARAM lParam);
ON_MESSAGE(WM_COMM_RXCHAR, OnMessageCommunication)
ON_MESSAGE(WM_COMM_ELECBOARD, OnMessageElecBoard) 展开
afx_msg void OnMessageElecBoard(WPARAM wParam,LPARAM lParam);
ON_MESSAGE(WM_COMM_RXCHAR, OnMessageCommunication)
ON_MESSAGE(WM_COMM_ELECBOARD, OnMessageElecBoard) 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询