www.pudn.com > SMS.rar > MobileAssistantView.h


// MobileAssistantView.h : CMobileAssistantView 类的接口 
// 
 
 
#pragma once 
 
 
class CMobileAssistantView : public CFormView 
{ 
protected: // 仅从序列化创建 
	CMobileAssistantView(); 
	DECLARE_DYNCREATE(CMobileAssistantView) 
 
public: 
	enum{ IDD = IDD_MOBILEASSISTANT_FORM }; 
	CEdit	m_editLog; 
	CString	m_csReceiverMobileNO; 
	CString	m_csSMSContent; 
	CString	m_csBaudRate; 
	CString	m_csSMSC; 
	CString	m_csLocalCountryCode; 
	CString	m_csLocalAreaCode; 
 
// 属性 
public: 
	CMobileAssistantDoc* GetDocument() const; 
	BOOL Proc_SendSMSEnd ( ENUM_ERROR_TYPE eResult, SM_PARAM *psm, WPARAM wParam, LPARAM lParam ); 
	BOOL ToolBarEnableButton(int nID, BOOL bEnable); 
	BOOL Proc_ReceivedSMS ( SM_PARAM *pSMRecv ); 
#ifndef _SMS_DISABLE 
	CMobileControl m_MobileControl; 
#endif 
 
// 操作 
public: 
 
// 重写 
public: 
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 
protected: 
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持 
	virtual void OnInitialUpdate(); 
	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 void OnBUTTONReadOnePhoneBook(); 
	LRESULT OnWM_SHOWLOG(WPARAM wParam, LPARAM lParam); 
 
// 实现 
public: 
	virtual ~CMobileAssistantView(); 
	void SetMobileParameter (); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
 
// 生成的消息映射函数 
protected: 
	DECLARE_MESSAGE_MAP() 
 
private: 
	void EnableWindow ( BOOL bEnable ); 
	void SetMobileNOHead(); 
	int m_nComNo; 
	void GetCtrlValue (); 
	void SetCtrlValue (); 
	void Align (); 
}; 
 
#ifndef _DEBUG  // MobileAssistantView.cpp 中的调试版本 
inline CMobileAssistantDoc* CMobileAssistantView::GetDocument() const 
   { return reinterpret_cast(m_pDocument); } 
#endif