⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mobileassistantview.h

📁 一个收发手机短信的源代码
💻 H
字号:
// MobileAssistantView.h : interface of the CMobileAssistantView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MOBILEASSISTANTVIEW_H__FCDD0C72_10A1_4D6C_BA8C_CBA2EE0ECD7F__INCLUDED_)
#define AFX_MOBILEASSISTANTVIEW_H__FCDD0C72_10A1_4D6C_BA8C_CBA2EE0ECD7F__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "MobileAssistant.h"

class CMobileAssistantView : public CFormView
{
protected: // create from serialization only
	CMobileAssistantView();
	DECLARE_DYNCREATE(CMobileAssistantView)

public:
	//{{AFX_DATA(CMobileAssistantView)
	enum { IDD = IDD_MOBILEASSISTANT_FORM };
	CHwEdit	m_editLog;
	CString	m_csReceiverMobileNO;
	CString	m_csSMSContent;
	CString	m_csBaudRate;
	CString	m_csSMSC;
	CString	m_csCountryCode;
	CString	m_csMobileNOHead;
	//}}AFX_DATA

// Attributes
public:
	CMobileAssistantDoc* GetDocument();
	BOOL Proc_SendSMSEnd ( ENUM_ERROR_TYPE eResult, WPARAM wParam, LPARAM lParam );

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMobileAssistantView)
	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:
	BOOL ToolBarEnableButton(int nID, BOOL bEnable);
	BOOL Proc_ReceivedSMS ( SM_PARAM *pSMRecv );
	void AddLogStr ( LPCTSTR lpszLog );
#ifndef _2Lines
	CMobileControl m_MobileControl;
#endif
	virtual ~CMobileAssistantView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CMobileAssistantView)
	afx_msg void OnBUTTONSendSMS();
	afx_msg void OnDestroy();
	afx_msg void OnBUTTONOpenPort();
	afx_msg void OnBUTTONClear();
	afx_msg void OnBUTTONExit();
	afx_msg void OnBUTTONRecvSMS();
	afx_msg void OnBUTTONReadSMS();
	afx_msg void OnBUTTONReadPhoneBook();
	afx_msg void OnBUTTONAddPhoneBook();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnTimer(UINT nIDEvent);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	int m_nComNo;
	void GetCtrlValue ();
	void SetCtrlValue ();
	void Align ();
};

#ifndef _DEBUG  // debug version in MobileAssistantView.cpp
inline CMobileAssistantDoc* CMobileAssistantView::GetDocument()
   { return (CMobileAssistantDoc*)m_pDocument; }
#endif

extern CMobileAssistantView* g_pCMobileAssistantView;

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MOBILEASSISTANTVIEW_H__FCDD0C72_10A1_4D6C_BA8C_CBA2EE0ECD7F__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -