📄 smsdemodlg.h
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -