smsdemodlg.h

来自「串口通信,基于串口的PC机的通过MODEM收发短消息的代码」· C头文件 代码 · 共 67 行

H
67
字号
// SMSDemoDlg.h : header file
//

#if !defined(AFX_SMSDEMODLG_H__C34649CE_A069_414E_8474_E6CDE016C23A__INCLUDED_)
#define AFX_SMSDEMODLG_H__C34649CE_A069_414E_8474_E6CDE016C23A__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CSMSDemoDlg dialog

#include "SerialPort.h"
#include "SMSPDU.h"

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

	static CSMSDemoDlg * pThisDlg;
	static void SMSCallbackProc(WPARAM wParam, LPARAM lParam);

// Dialog Data
	//{{AFX_DATA(CSMSDemoDlg)
	enum { IDD = IDD_SMSDEMO_DIALOG };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;

	CSerialPort port;
	BOOL		m_bRead;
	CString		m_szReceive;
	int			m_nSendStep;
	CString		strStream;

	void DoSend();
	void DoRecv();

	// Generated message map functions
	//{{AFX_MSG(CSMSDemoDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnSend();
	afx_msg void OnButtonReceive();
	afx_msg LONG OnCommunication(WPARAM ch, LPARAM port);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_SMSDEMODLG_H__C34649CE_A069_414E_8474_E6CDE016C23A__INCLUDED_)

⌨️ 快捷键说明

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