📄 api_com_testdlg.h
字号:
// api_com_testDlg.h : header file
//
#include "SerialPort.h"
#if !defined(AFX_API_COM_TESTDLG_H__2574D765_FFDD_45C4_A6E9_A186CCB16613__INCLUDED_)
#define AFX_API_COM_TESTDLG_H__2574D765_FFDD_45C4_A6E9_A186CCB16613__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CApi_com_testDlg dialog
class CApi_com_testDlg : public CDialog
{
// Construction
public:
CApi_com_testDlg(CWnd* pParent = NULL); // standard constructor
public:
int m_nBaud; //波特率
int m_nCom; //串口号
char m_cParity; //校验
int m_nDatabits; //数据位
int m_nStopbits; //停止位
CSerialPort m_Port; //CSerialPort类对象
// Dialog Data
//{{AFX_DATA(CApi_com_testDlg)
enum { IDD = IDD_API_COM_TEST_DIALOG };
CEdit m_ctrlReceiveData;
CString m_strsend;
CString m_ReceiveData;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CApi_com_testDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
DWORD m_dwCommEvents;
// Generated message map functions
//{{AFX_MSG(CApi_com_testDlg)
virtual BOOL OnInitDialog();
afx_msg LONG OnCommunication(WPARAM ch, LPARAM port);
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnButtonSend();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_API_COM_TESTDLG_H__2574D765_FFDD_45C4_A6E9_A186CCB16613__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -