📄 msglistsendwnd.h
字号:
#if !defined(AFX_MSGLISTSENDWND_H__63A80BCA_5BB7_4427_8ED4_974CAE826DDC__INCLUDED_)
#define AFX_MSGLISTSENDWND_H__63A80BCA_5BB7_4427_8ED4_974CAE826DDC__INCLUDED_
#include "smsx.h"
#include "IniFile.h"
#define IDC_SMSX 1008
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
//获得ADO支持
#import "d:\program files\common files\system\ado\msado15.dll" \
no_namespace rename("EOF","adoEOF")
// MsgListSendWnd.h : header file
//
struct MsgInfo
{
CString szId; //报警信息得编号
CString szContent; //报警信息列队内容
BOOL bSend; //是否发送这个记录
BOOL bAutoSend; //是否为固定发送得报警计量信息内容
int nNum; //发送手机号码
int nHour; //这条信息24小时内有多少哥小时发送(针对bAutoSend真是有效)
int nHourBuff[24]; //存储用户定义的发送的小时数值
CString szDes; //信息描述(针对bAutoSend真是有效)
};
/////////////////////////////////////////////////////////////////////////////
// CMsgListSendWnd window
class CMsgListSendWnd : public CWnd
{
// Construction
public:
CMsgListSendWnd();
int GetMaxBuffNum();
void InitDevice();
CMsgSendWnd();
protected:
void DataCString(CString strVal);
void DataProcessIniVal(CString strVal,BOOL bAutoSend);
BOOL ReadIniFileVal();
MsgInfo *m_Info;
CSMSX m_hSms;
int nMaxNum;
BOOL bConnected;
_ConnectionPtr m_pConnection;
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMsgListSendWnd)
//}}AFX_VIRTUAL
// Implementation
public:
void JudgeTimeToSendMsg();
BOOL SetMsgListContent(CString strId);
virtual ~CMsgListSendWnd();
// Generated message map functions
protected:
double GetRealVal(CString strVal);
//{{AFX_MSG(CMsgListSendWnd)
afx_msg void OnConnectResultSmsx(long Status);
afx_msg void OnSendMsgSmsx(short Result, long MsgIndex);
DECLARE_EVENTSINK_MAP()
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MSGLISTSENDWND_H__63A80BCA_5BB7_4427_8ED4_974CAE826DDC__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -