📄 swjdlg.h
字号:
// SWJDlg.h : header file
//
#include "SerialPort.h"
#if !defined(AFX_SWJDLG_H__3EEFDEC7_DE82_40B8_BB55_B4B11DBDC7B7__INCLUDED_)
#define AFX_SWJDLG_H__3EEFDEC7_DE82_40B8_BB55_B4B11DBDC7B7__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CSWJDlg dialog
class CSWJDlg : public CDialog
{
// Construction
public:
BOOL flag;
unsigned int counter1;
double temp;
void Draw();
unsigned int counter;
void Draw_Frame();
double Rx_Data[100];
void Init_Rx_Data(int x);
CSWJDlg(CWnd* pParent = NULL); // standard constructor
CSerialPort m_SerialPort;
BOOL m_bSerialPortOpened;
// Dialog Data
//{{AFX_DATA(CSWJDlg)
enum { IDD = IDD_SWJ_DIALOG };
CComboBox m_ctrlComboComPort;
CString m_strDataBackMsg;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSWJDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CSWJDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnBUTTONStop();
afx_msg void OnBUTTONOpen();
afx_msg void OnBUTTONClose();
afx_msg void OnBUTTONGo();
afx_msg LONG OnComm(WPARAM ch,LPARAM port);
afx_msg void OnBUTTONBack();
afx_msg void OnBUTTONTurnLeft();
afx_msg void OnBUTTONTurnRight();
afx_msg void OnBUTTONRise();
afx_msg void OnBUTTONDown();
afx_msg void OnBUTTONAdd();
afx_msg void OnBUTTONReduce();
afx_msg void OnBUTTONReset();
afx_msg void OnBUTTONAdd1();
afx_msg void OnBUTTONReduce1();
afx_msg void OnBUTTONStartDraw();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnBUTTONStopDraw();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SWJDLG_H__3EEFDEC7_DE82_40B8_BB55_B4B11DBDC7B7__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -