?? serialporttestdlg.h
字號:
/****************************************************************************************************/
/* 測溫儀上位機程序 */
/* 光纖長度: 1.5米 */
/* 測溫范圍: 600℃~ 1800℃ */
/* 公司名稱: 陜西瑞光自動化儀表有限公司 */
/* 職 務: 電子工程師 */
/* 作 者: 莊建超 */
/* 時 間: 2010年12月25日 */
/* 版 本: V1.00 */
/****************************************************************************************************/
// SerialPortTestDlg.h : header file
//
#if !defined(AFX_SERIALPORTTESTDLG_H__556B3D06_5375_11D8_870F_00E04C3F78CA__INCLUDED_)
#define AFX_SERIALPORTTESTDLG_H__556B3D06_5375_11D8_870F_00E04C3F78CA__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "SerialPort.h" //添加CSerailPort類的頭文件
/////////////////////////////////////////////////////////////////////////////
// CSerialPortTestDlg dialog
class CSerialPortTestDlg : public CDialog
{
// Construction
public:
CSerialPort m_SerialPort; //CSerailPort類對象
BOOL m_bSerialPortOpened; //標志串口是否打開
CSerialPortTestDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CSerialPortTestDlg)
enum { IDD = IDD_SERIALPORTTEST_DIALOG };
CComboBox m_ctrlComboComPort;//串口號
CComboBox m_ctrlComboParty;//校驗位
CComboBox m_ctrlComBorte;//波特率
//CString m_strEditComBorte;//波特率
CString m_strEditDAslope;//DA斜率
CString m_strEditDATop;//DA零點加
CString m_strEditDABtom;//DA零點減
CString m_strEditAdd;//儀器地址
CString m_strEditAddG;//儀器地址
CString Comm_Add;//儀器地址
CString m_strEditTop;//儀器4-20mA上限
CString m_strEditBtom;//儀器4-20mA下限
CString m_strEditReceiveMsg;
CString m_strEditReceiveMsg2;
CString m_strEditReceiveMsg3;
CString m_strEditSendMsg;
CString m_strEditHuanwen;
int strOpen;//接收判斷標志
CString strCommData;//接收數據中間緩存
CString m_strSComm;//接收按鈕判斷標志
CEdit RXD_EDIT;
CEdit RXD_EDIT2;
unsigned char m_charLRC;//校驗和
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSerialPortTestDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CSerialPortTestDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg LONG OnComm(WPARAM ch, LPARAM port);
afx_msg void OnButtonOpen();
afx_msg void OnButtonClose();
afx_msg void OnButtonSend();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnEnChangeEdit1();
afx_msg void OnBnClickedButton1();
afx_msg void OnBnClickedButton2();
afx_msg void OnBnClickedButton13();
afx_msg void OnBnClickedButton7();
afx_msg void OnBnClickedButton11();
afx_msg void OnBnClickedButton3();
afx_msg void OnBnClickedButton10();
afx_msg void OnBnClickedButton14();
afx_msg void OnBnClickedButton15();
afx_msg void OnBnClickedButton12();
afx_msg void OnBnClickedButton16();
afx_msg void OnBnClickedButton17();
afx_msg void OnBnClickedButton18();
afx_msg void OnBnClickedButton6();
afx_msg void OnBnClickedButton8();
afx_msg void OnBnClickedButton9();
afx_msg void OnBnClickedButton4();
afx_msg void OnBnClickedButton5();
afx_msg void OnBnClickedLaser2();
afx_msg void OnBnClickedButtonduqufashe();
afx_msg void OnBnClickedButttonAdd();
unsigned int ASCII_HEX(unsigned char HEX_data);
afx_msg void OnBnClickedxielv();
afx_msg void OnBnClickedwendu();
afx_msg void OnBnClickedhuanwen();
afx_msg void OnBnClickedbiaoding();
afx_msg void OnBnClickedwendu2();
afx_msg void OnBnClickedwendu3();
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SERIALPORTTESTDLG_H__556B3D06_5375_11D8_870F_00E04C3F78CA__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -