smscomdlg.h
来自「sms sender 察到布局图全貌」· C头文件 代码 · 共 149 行
H
149 行
// SmsComDlg.h : header file
//
//{{AFX_INCLUDES()
#include "mscomm.h"
//}}AFX_INCLUDES
#if !defined(AFX_SMSCOMDLG_H__2D38506D_DFD5_46A0_B1E9_B2DB930A7881__INCLUDED_)
#define AFX_SMSCOMDLG_H__2D38506D_DFD5_46A0_B1E9_B2DB930A7881__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "GSMSMS.h"
#include "ReadDB.h"
class CSmsComDlgAutoProxy;
/////////////////////////////////////////////////////////////////////////////
// CMyEdit
class CMyEdit : public CEdit
{
// Construction
public:
CMyEdit();
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMyEdit)
//}}AFX_VIRTUAL
// Implementation
public:
void SetColor(int);
void AppendText(CString sMsg,int nColor);
virtual ~CMyEdit();
// Generated message map functions
protected:
int m_nColor;
CBrush m_YellowBrush;
CBrush m_GrayBrush;
int m_nBits;
//{{AFX_MSG(CMyEdit)
afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor);
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
// CSmsComDlg dialog
class CSmsComDlg : public CDialog
{
DECLARE_DYNAMIC(CSmsComDlg);
friend class CSmsComDlgAutoProxy;
// Construction
public:
CSmsComDlg(CWnd* pParent = NULL); // standard constructor
virtual ~CSmsComDlg();
public:
CGSMSMS m_ctrlGsmSms;
// Dialog Data
//{{AFX_DATA(CSmsComDlg)
enum { IDD = IDD_SMSCOM_DIALOG };
//CMyEdit m_ctrlMsgTipsEdt;
CEdit m_ctrlMsgTipsEdt;
CComboBox m_ctrlCenterName;
CListCtrl m_ctrlSndSMList;
CComboBox m_ctrlBaudSel;
CComboBox m_ctrlComSel;
CMSComm m_ctrlSMSCom;
CString m_szPhoneCode;
CString m_szSMSCCode;
CString m_szSMText;
UINT m_nSMTextCounter;
CString m_szCurSettingPrompt;
CString m_szInterAreaMTCode;
CString m_szInterAreaSMCCode;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSmsComDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
private:
static const char s_profileHeading[];
static const char s_profileMoniUnitName[];
// Implementation
public:
BOOL Is256(){return m_b256;};
BOOL InitByStationID(CString szStationID);
// void AddSMMsgToRcvSMList(CString &szTPCode,CString &szSMText);
void AddSMMsgToSndSMList(CString &szTPCode,CString &szSMText);
void DispMsg(CString szMsg, int nColor=2);
protected:
int m_nCodingType;
BOOL m_b256;
int m_nReselCenterBtnFlag;//1-修改,2-存档
UINT m_nCurBaud;
UINT m_nBaudList[7];
UINT m_nCurComSel;
CSmsComDlgAutoProxy* m_pAutoProxy;
HICON m_hIcon;
BOOL CanExit();
LONG OnSndtoPhoneMsgProcess(UINT wParam, LONG lParam);
// Generated message map functions
//{{AFX_MSG(CSmsComDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnClose();
virtual void OnOK();
afx_msg void OnCloseComButton();
afx_msg void OnInitComButton();
afx_msg void OnSndsmsButton();
afx_msg void OnClickedOk();
afx_msg void OnChangeSmTextEdit();
afx_msg void OnSelchangeComlistCombo();
afx_msg void OnSelchangeBaudlistCombo();
afx_msg void OnSettingButton();
afx_msg void OnReselCenterButn();
afx_msg void OnSelchangeCenterName();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SMSCOMDLG_H__2D38506D_DFD5_46A0_B1E9_B2DB930A7881__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?