datarec.h

    技术2022-05-20  34

    #if !defined(AFX_DATAREC_H__A2FCAA91_4AF6_4A39_803C_BCC3F4FF7CA0__INCLUDED_)#define AFX_DATAREC_H__A2FCAA91_4AF6_4A39_803C_BCC3F4FF7CA0__INCLUDED_

    #if _MSC_VER > 1000#pragma once#endif // _MSC_VER > 1000// DataRec.h : header file//#include "mscomm.h"#include "ReceivedataSet.h"/// DataRec dialog

    class DataRec : public CDialog{// Constructionpublic: DataRec(CWnd* pParent = NULL);   // standard constructor        CReceivedataSet dSet; void OnComm(); CMSComm m_comm;// bool mscomm_open;    int oct_choose; int nrec ;    int m_nBaud;       //波特率 int m_nCom;        //串口号 char m_cParity;    //校验 int m_nDatabits;   //数据位 int m_nStopbits;   //停止位// Dialog Data //{{AFX_DATA(DataRec) enum { IDD = IDD_DIALOG1 }; CButton m_OCT; CComboBox m_StopBits; CComboBox m_Port; CComboBox m_Parity; CComboBox m_DataBits; CComboBox m_Speed; CString m_receivestr; //}}AFX_DATA   

    // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(DataRec) protected: virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support //}}AFX_VIRTUAL

    // Implementationprotected:

     // Generated message map functions //{{AFX_MSG(DataRec) afx_msg void OnPaint(); afx_msg void OnOnCommMscomm2(); virtual BOOL OnInitDialog(); afx_msg void OnSelendokComboPort(); afx_msg void OnSelendokComboBr(); afx_msg void OnSelendokComboDb(); afx_msg void OnSelendokComboParity(); afx_msg void OnSelendokComboSb();  afx_msg void OnConnect();  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_DATAREC_H__A2FCAA91_4AF6_4A39_803C_BCC3F4FF7CA0__INCLUDED_)


    最新回复(0)