⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 serialportdlg.h

📁 利用VC++实现PC通过串口收发手机短消息
💻 H
字号:
// SerialPortDlg.h : header file
//

#if !defined(AFX_SERIALPORTDLG_H__8D6A02E1_0A75_4CF7_A287_8CC587189F53__INCLUDED_)
#define AFX_SERIALPORTDLG_H__8D6A02E1_0A75_4CF7_A287_8CC587189F53__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CSerialPortDlg dialog
#include "SerialCommlayer.h"

class CSerialPortDlg : public CDialog
{
// Construction
public:
	CSerialPortDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CSerialPortDlg)
	enum { IDD = IDD_SERIALPORT_DIALOG };
	CComboBox	m_comboStopBit;
	CComboBox	m_comboPort;
	CComboBox	m_comboParity;
	CComboBox	m_comboByteSize;
	CComboBox	m_comboBaudRate;
	CButton	m_btnStopComm;
	CButton	m_btnStartComm;
	CListCtrl	m_lstSentDatus;
	CListCtrl	m_lstReceivedDatus;
	int		m_BaudRate;
	int		m_ByteSize;
	CString	m_Port;
	CString	m_SendItems;
	CString	m_Parity;
	CString	m_StopBit;
	CString	m_smsc;
	CString	m_DestCellularNo;
	CString	m_smsno;
	int		m_nCodeScheming;
	//}}AFX_DATA

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

// Implementation
private:
	CRCCComm * m_hComm;
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CSerialPortDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnbtnUpdateCommStatus();
	afx_msg void OnbtnSend();
	afx_msg void OnbtnStartComm();
	afx_msg void OnbtnStopComm();
	afx_msg void OnbtnListen();
	afx_msg void OnbtnGsmInit();
	afx_msg void OnbtnCMGL();
	afx_msg void OnbtnCMGR();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SERIALPORTDLG_H__8D6A02E1_0A75_4CF7_A287_8CC587189F53__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -