1.发送结构体
2.发送单个消息
发送
double dAngle = m_HInputData.originAngle - m_ReadData.fZAngle;
::SendMessage(m_hOwner, WM_MOTORPULSE, (WPARAM)&dAngle, 0);
接收
LRESULT CAutoMeasureHeightDlg::OnMotorPulseMessage(WPARAM wParam, LPARAM lParam)
{
double *dAngle = (double *)wParam;//传递一个参数