📄 pelcodlg.h
字号:
// pelcoDlg.h : header file
//
#if !defined(AFX_PELCODLG_H__60E707A8_045E_4196_A08B_83008D225D94__INCLUDED_)
#define AFX_PELCODLG_H__60E707A8_045E_4196_A08B_83008D225D94__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "MyListBox.h"
#include "rs232.h"
/////////////////////////////////////////////////////////////////////////////
// CPelcoDlg dialog
class CPelcoDlg : public CDialog
{
public:
CMyListBox m_ctrSendDataList;
CRs232 m_ctrRSComm;
// Construction
public:
void SendData(WORD cmd,WORD data);
BYTE GetMod(unsigned char *buf,int len);
void AddSendDataToList(BYTE *pBuff,int len);
CPelcoDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CPelcoDlg)
enum { IDD = IDD_PELCO_DIALOG };
CButton m_ctrOpenCommButton;
CStatic m_ctrCommStatus;
CComboBox m_ctrParityBitCombo;
CComboBox m_ctrStopBitCombo;
CComboBox m_ctrDataBytesCombo;
CComboBox m_ctrBaudRateCombo;
CComboBox m_ctrCommNumCombo;
int m_iMoveRangeEdit;
int m_iPointSetEdit;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CPelcoDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CPelcoDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
virtual void OnOK();
afx_msg void OnPointButton();
afx_msg void OnOpenComm();
afx_msg void OnCloseComm();
afx_msg void OnUpMove();
afx_msg void OnClearList();
afx_msg void OnDownMove();
afx_msg void OnLeftMove();
afx_msg void OnRightMove();
afx_msg void OnFarMove();
afx_msg void OnNearMove();
afx_msg void OnSetPoint();
afx_msg void OnToPoint();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_PELCODLG_H__60E707A8_045E_4196_A08B_83008D225D94__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -