📄 smsinterfaceview.h
字号:
// smsinterfaceView.h : interface of the CSmsinterfaceView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_SMSINTERFACEVIEW_H__B19A706E_5B78_11D6_BC51_00E04CDFE759__INCLUDED_)
#define AFX_SMSINTERFACEVIEW_H__B19A706E_5B78_11D6_BC51_00E04CDFE759__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <afxcoll.h>
#include "MainFrm.h"
class CSmsinterfaceView : public CFormView
{
public: // create from serialization only
CSmsinterfaceView();
DECLARE_DYNCREATE(CSmsinterfaceView)
public:
//{{AFX_DATA(CSmsinterfaceView)
enum { IDD = IDD_SMSINTERFACE_FORM };
CListBox m_listsendnum;
CListBox m_listmemnum;
CString m_messagetext;
CString m_phonenum;
//}}AFX_DATA
// Attributes
public:
CSmsinterfaceDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSmsinterfaceView)
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);
virtual LRESULT DefWindowProc(UINT message, WPARAM wParam, LPARAM lParam);
//}}AFX_VIRTUAL
// Implementation
public:
CStringArray phonebookar;
void IntToHexstr(int dec,CString& hexstr);
CString messagetext;
char nBuffertext[150];
CStringArray dialnumar;
CStringArray m_strphonebook;
virtual ~CSmsinterfaceView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
void DeCodeUni(CString sstr, CString &dstr);
void GetSubStr(CString str, int sindex, int eindex,CString& substr);
// Generated message map functions
protected:
BOOL ReadOneEntry(CFile &file, CString &indexstr, CString &namestr, CString &phonestr);
BOOL ReadOneItem(CFile& file,CString& str);
BOOL ReadAllEntry(CFile& file,CStringArray& ar);
phbook_struct m_pbset;
void GetDialnum(CString pblist,CString& dialnum);
void GetPhoneBookList(CStringArray &phonebook);
//{{AFX_MSG(CSmsinterfaceView)
afx_msg void OnAddPhoneNum();
afx_msg void OnNumAddSendList();
afx_msg void OnDelSendNum();
afx_msg void OnSendMessage();
afx_msg void OnReset();
afx_msg void OnBtnSavesms();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in smsinterfaceView.cpp
inline CSmsinterfaceDoc* CSmsinterfaceView::GetDocument()
{ return (CSmsinterfaceDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SMSINTERFACEVIEW_H__B19A706E_5B78_11D6_BC51_00E04CDFE759__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -