📄 sendsms.h
字号:
#if !defined(AFX_SENDSMS_H__70545C99_85B3_48E4_9593_9AE88CBB560D__INCLUDED_)
#define AFX_SENDSMS_H__70545C99_85B3_48E4_9593_9AE88CBB560D__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// SendSms.h : header file
//
#define SMS_CMD_DW 0x01 //('定位')
#define SMS_CMD_BJ 0x02 //('报警')
// 命令头
#define SMS_CMD_HEAD 0x2A // ('*')
// 分隔字符
#define SEPARATE_NOTATION 0x2C // (',')
/////////////////////////////////////////////////////////////////////////////
// CSendSms dialog
class CSendSms : public CDialog
{
// Construction
public:
CSendSms(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CSendSms)
enum { IDD = IDD_DIALOG_SENDSMS };
CXTButton m_butCreateSms;
CXTDateTimeCtrl m_ctlTime;
CXTDateTimeCtrl m_ctlDate;
CXTButton m_butSelect;
CXTFlatEdit m_edtStatus;
CXTFlatEdit m_edtSpeed;
CXTFlatEdit m_edtSmsDisplay;
CXTFlatEdit m_edtInterval;
CXTFlatEdit m_edtCourse;
CXTFlatEdit m_edtCount;
CXTFlatEdit m_edtCmdSN;
CXTFlatEdit m_edtLongitidue;
CXTFlatEdit m_edtLatitude;
CXTButton m_butOk;
CXTButton m_butCancle;
CString m_strSmsDisplay;
CString m_strStatus;
COleDateTime m_date;
COleDateTime m_time;
UINT m_nCmdSN;
short m_nCourse;
int m_nCount;
int m_nInterval;
double m_nLatitude;
double m_nLongitude;
double m_dSpeed;
//}}AFX_DATA
public:
// CString m_strCommSms;
UINT nSmsType;
int GetSmsConfig();
int SetSmsConfig();
void SetSmsType(UINT nType) {nSmsType = nType;};
UINT GetSmsType() {return nSmsType;};
CString CreateCommSms();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSendSms)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CSendSms)
afx_msg void OnButtonSelect();
virtual BOOL OnInitDialog();
virtual void OnOK();
afx_msg void OnRadioDw();
afx_msg void OnButtonCreatesms();
afx_msg void OnRadioBj();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SENDSMS_H__70545C99_85B3_48E4_9593_9AE88CBB560D__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -