📄 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<CMobileAssistantDoc*>(m_pDocument); }
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -