串口调试C源代码,波形显示.rar
源代码在线查看: 串口调试dlg.h
// 串口调试Dlg.h : header file
//
//{{AFX_INCLUDES()
#include "mscomm.h"
#include "wavedlg.h"
//}}AFX_INCLUDES
#if !defined(AFX_DLG_H__6E6DD16A_62A8_4411_BF7B_507C3806BAB4__INCLUDED_)
#define AFX_DLG_H__6E6DD16A_62A8_4411_BF7B_507C3806BAB4__INCLUDED_
extern CString m_ReceiveBuffer;
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CMyDlg dialog
class CMyDlg : public CDialog
{
// Construction
public:
bool NewReceive;
void GetPortNum();
unsigned char m_Port;
CWaveDlg WaveDlg;
bool m_HexSend;
bool m_HexShow;
void SetComState();
// char m_SendData[4096];
CString ComState;
CMyDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CMyDlg)
enum { IDD = IDD_MY_DIALOG };
CMSComm m_Com;
CString m_SendData;
CString m_ReceiveData;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMyDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CMyDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnOpenCom();
afx_msg void OnSendData();
afx_msg void OnSelchangeCOMBOBaudRate();
afx_msg void OnSelchangeCOMBOByteSize();
afx_msg void OnSelchangeCOMBOParity();
afx_msg void OnSelchangeCOMBOStopBits();
afx_msg void OnOnCommMscomm();
afx_msg void OnClose();
afx_msg void OnClearRxwnd();
afx_msg void OnRadioHexsend();
afx_msg void OnRadioHexshow();
afx_msg void OnRadioStrsend();
afx_msg void OnRadioStrshow();
afx_msg void OnUpdateEditSenddata();
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnOpenWavewindow();
afx_msg void OnSelchangeComboPort();
DECLARE_EVENTSINK_MAP()
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DLG_H__6E6DD16A_62A8_4411_BF7B_507C3806BAB4__INCLUDED_)