demodlg.h
来自「利用西门子的GSM芯片(TC35)的手机模块实现短信的读写」· C头文件 代码 · 共 71 行
H
71 行
// DemoDlg.h : header file
//
#if !defined(AFX_DEMODLG_H__FB7D2EEC_FEFB_4DEF_A78E_EF4013EF3DC2__INCLUDED_)
#define AFX_DEMODLG_H__FB7D2EEC_FEFB_4DEF_A78E_EF4013EF3DC2__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "SerialPort.h"
/////////////////////////////////////////////////////////////////////////////
// CDemoDlg dialog
class CDemoDlg : public CDialog
{
// Construction
public:
CDemoDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CDemoDlg)
enum { IDD = IDD_DEMO_DIALOG };
CEdit m_ctlreceiveedit;
CButton m_ctlbuttonsend;
CComboBox m_ctlportcombo;
CComboBox m_ctldisplaycombo;
CEdit m_ctlsendedit;
CStatic m_displayvc;
CString m_strnumber;
CString m_strsend;
CString m_strreceive;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDemoDlg)
public:
virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
CSerialPort m_Port;
// Generated message map functions
//{{AFX_MSG(CDemoDlg)
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg LONG OnCommunication(UINT, LONG);
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
afx_msg void OnButtonclearsend();
afx_msg void OnButtonclearreceive();
afx_msg void OnSelchangePortcombo();
afx_msg void OnButtonsend();
afx_msg void OnTimer(UINT nIDEvent);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
CFont m_fSampFont;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DEMODLG_H__FB7D2EEC_FEFB_4DEF_A78E_EF4013EF3DC2__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?