?? gprsdlg.h
字號:
/*! \file GPRSDlg.h
\brief 應用程序界面聲明文件
\author 陳華毅
\version 1.0
用戶通過這個窗口實現了與應用程序的交互,通過這個界面控制和使用GPRS模塊。
*/
#if !defined(AFX_GPRSDLG_H__801B9198_332F_47B7_9715_D6704657BF95__INCLUDED_)
#define AFX_GPRSDLG_H__801B9198_332F_47B7_9715_D6704657BF95__INCLUDED_
#include "GPRSer.h" // Added by ClassView
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
/*! \defgroup GPRSDLG_IMPLEMENT CGPRSDlg類實現說明
*/
//@{
#define EDIT_NUM_FOCUS 0 //!< 指示光標于號碼編輯框內
#define EDIT_MSG_FOCUS 1 //!< 指示光標于消息顯示\編輯框內
//@}
//! 主界面對話框類
/*!
這個類從CDialog派生而來,作為應用程序的主界面。通過調用\ref CICCarder提供的功能,完成用戶期望的操作。
*/
//@{
class CGPRSDlg : public CDialog
{
// Construction
public:
CRITICAL_SECTION m_csSend; //!< 與發送相關的臨界段
CRITICAL_SECTION m_csRecv; //!< 與接收相關的臨界段
DWORD m_dwThreadID; //!< 讀取串口數據線程ID
HANDLE m_hRevThread; //!< 讀取串口數據線程句柄
INT m_iFocus; //!< 光標當前狀態
/*! 顯示字符函數
\param [in] 要顯示的字符
\return 無
*/
VOID ShowMsg(CString str);
/*! 讀取串口數據線程函數
\param [in] pPararm - 長空指針
\return 無
*/
static VOID CommThread(LPVOID pParam);
/*! 顯示字符函數
\param [in] 要顯示的字符'0'-'9','#','*'.
\return 無
*/
VOID ShowText(CString str);
CGPRSDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CGPRSDlg)
enum { IDD = IDD_GPRS_DIALOG };
CString m_strMsg;
CString m_strNum;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CGPRSDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
/*! \fn virtual BOOL OnInitDialog()
創建主對話框消息響應函數,在創建過程中初始化GPRS模塊
\param 無
\return 無
*/
/*! \fn afx_msg void OnButtonBack()
清除號碼最后一個字符消息響應函數
\param 無
\return 無
*/
/*! \fn afx_msg void OnButtonCall()
打電話\掛電話消息響應函數
\param 無
\return 無
*/
/*! \fn afx_msg void OnButtonSend()
發送短消息消息響應函數
\param 無
\return 無
*/
/*! \fn afx_msg void OnButton0()
按鍵0消息響應函數
\param 無
\return 無
*/
/*! \fn afx_msg void OnButton1()
按鍵1消息響應函數
\param 無
\return 無
*/
/*! \fn afx_msg void OnButton21()
按鍵2消息響應函數
\param 無
\return 無
*/
/*! \fn afx_msg void OnButton3()
按鍵3消息響應函數
\param 無
\return 無
*/
/*! \fn afx_msg void OnButton4()
按鍵4消息響應函數
\param 無
\return 無
*/
/*! \fn afx_msg void OnButton5()
按鍵5消息響應函數
\param 無
\return 無
*/
/*! \fn afx_msg void OnButton6()
按鍵6消息響應函數
\param 無
\return 無
*/
/*! \fn afx_msg void OnButton7()
按鍵7消息響應函數
\param 無
\return 無
*/
/*! \fn afx_msg void OnButton8()
按鍵8消息響應函數
\param 無
\return 無
*/
/*! \fn afx_msg void OnButton9()
按鍵9消息響應函數
\param 無
\return 無
*/
/*! \fn afx_msg void OnButton10()
按鍵*消息響應函數
\param 無
\return 無
*/
/*! \fn afx_msg void OnButton11()
按鍵#消息響應函數
\param 無
\return 無
*/
/*! \fn afx_msg void OnSetfocusEditMsg()
光標進入消息顯示\編輯框消息響應函數
\param 無
\return 無
*/
/*! \fn afx_msg void OnSetfocusEditNum()
光標進入號碼編輯框消息響應函數
\param 無
\return 無
*/
/*! \fn afx_msg LRESULT OnNotify(WPARAM wParam, LPARAM lParam)
狀態顯示區消息響應函數
\param 無
\return 無
*/
/*! \fn afx_msg OnDestroy()
窗口銷毀消息響應函數
\param 無
\return 無
*/
/*! \fn afx_msg OnButtonReset()
清空按鍵消息響應函數
\param 無
\return 無
*/
/*! \fn afx_msg void OnButtonMsgback()
清除消息顯示\編輯框最后一個字符按鍵消息響應函數
\param 無
\return 無
*/
// Generated message map functions
//{{AFX_MSG(CGPRSDlg)
virtual BOOL OnInitDialog();
afx_msg void OnButtonBack();
afx_msg void OnButtonCall();
afx_msg void OnButtonSend();
afx_msg void OnButton0();
afx_msg void OnButton1();
afx_msg void OnButton10();
afx_msg void OnButton11();
afx_msg void OnButton21();
afx_msg void OnButton3();
afx_msg void OnButton4();
afx_msg void OnButton5();
afx_msg void OnButton6();
afx_msg void OnButton7();
afx_msg void OnButton8();
afx_msg void OnButton9();
afx_msg void OnSetfocusEditMsg();
afx_msg LRESULT OnNotify(WPARAM wParam, LPARAM lParam);
afx_msg void OnDestroy();
afx_msg void OnButtonReset();
afx_msg void OnButtonMsgback();
afx_msg void OnSetfocusEditNum();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
CGPRSer m_gprs;
};
//@}
//{{AFX_INSERT_LOCATION}}
// Microsoft eMbedded Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_GPRSDLG_H__801B9198_332F_47B7_9715_D6704657BF95__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -