mfc 自定义消息
#define COM_RECVDATA (WM_USER+1000) //注册消息 ON_MESSAGE(COM_RECVDATA, OnRecvData)//消息映射 afx_msg LRESULT OnRecvData(WPARAM wParam, LPARAM lParam); //消息映射的函数 serport->SendMessage(COM_RECVDATA,(unsigned int)ch, wCount); //发送消息
mfc 自定义消息
#define COM_RECVDATA (WM_USER+1000) //注册消息 ON_MESSAGE(COM_RECVDATA, OnRecvData)//消息映射 afx_msg LRESULT OnRecvData(WPARAM wParam, LPARAM lParam); //消息映射的函数 serport->SendMessage(COM_RECVDATA,(unsigned int)ch, wCount); //发送消息