📄 gsmgprsview.h
字号:
// GsmGprsView.h : interface of the CGsmGprsView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_GSMGPRSVIEW_H__A16D1385_1BF6_43E6_BF00_743E9FADC676__INCLUDED_)
#define AFX_GSMGPRSVIEW_H__A16D1385_1BF6_43E6_BF00_743E9FADC676__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////
#include "Comm.h" //使用API函数访问串口
#include "SettingsDlg.h" //串口设置窗口
////////////////////////////////////////////////////////////CSettingsDlg dlg;
class CGsmGprsView : public CFormView
{
protected: // create from serialization only
CGsmGprsView();
DECLARE_DYNCREATE(CGsmGprsView)
public:
//{{AFX_DATA(CGsmGprsView)
enum { IDD = IDD_GSMGPRS_FORM };
CComboBox m_ctrlReceivePos;
CComboBox m_ctrlWriteReadPos;
CComboBox m_ctrlReadPos;
CStatic m_ctrlPortStatus;
CListCtrl m_ListCtrl;
CString m_strShowLink;
CString m_strSendMsg;
CString m_strReceiveMsg;
CString m_strSimRead;
CString m_strFlashRead;
CString m_strPduMode;
CString m_strTextMode;
CString m_strOriCheck;
CString m_strSimSave;
CString m_strFlashSave;
CString m_strPhoneBack;
CString m_strHandPhone;
CString m_strShowClock;
CString m_strShowNum;
//}}AFX_DATA
CString m_strPort; //串口号
CString m_strRate; //串口速率
CString m_strSmsc; //短信中心号码
CString strReadPos;
CString strWriteSendPos;
CString strReceivePos;
CString strFactory;
CString strModulMsg;
// Attributes
public:
CGsmGprsDoc* GetDocument();
void InitListCtrl();
// Operations
public:
//extern ans[128];
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CGsmGprsView)
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual void OnInitialUpdate(); // called first time after construct
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CGsmGprsView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
void ShowBaseMsg();
void ShowRing();
void SaveText(CString strNumber,CString strContent,CString strTime);
//{{AFX_MSG(CGsmGprsView)
afx_msg void OnButtonSend();
afx_msg void OnButtonInitgprs();
afx_msg void OnButtonOpengprs();
afx_msg void OnButtonWritegprs();
afx_msg void OnButtonReadgprs();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnButtonLink();
afx_msg void OnButtonSendmsg();
afx_msg void OnButtonSimread();
afx_msg void OnButtonFlashread();
afx_msg void OnButtonPdu();
afx_msg void OnButtonEmptyrev();
afx_msg void OnButtonEmptysend();
afx_msg void OnButtonText();
afx_msg void OnButtonOricheck();
afx_msg void OnButtonSimsave();
afx_msg void OnButtonFlashsave();
afx_msg void OnButtonPhoneback();
afx_msg void OnButtonHandphone();
afx_msg void OnSelendokComboReadpos();
afx_msg void OnSelendokComboWritesendpos();
afx_msg void OnButtonSendcomm();
afx_msg void OnSelendokComboRevpos();
afx_msg void OnButtonShowclock();
afx_msg void OnButtonDodigital();
afx_msg void OnButton3();
afx_msg void OnButtonCancellnum();
afx_msg void OnButton4();
afx_msg void OnButtonEdit();
//}}AFX_MSG
afx_msg void OnNumberKey(UINT nID);
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in GsmGprsView.cpp
inline CGsmGprsDoc* CGsmGprsView::GetDocument()
{ return (CGsmGprsDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_GSMGPRSVIEW_H__A16D1385_1BF6_43E6_BF00_743E9FADC676__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -