📄 tempviewdlg.h
字号:
// TempViewDlg.h : header file
//
#include "MyScroll02.h"
//{{AFX_INCLUDES()
#include "mscomm.h"
//}}AFX_INCLUDES
#if !defined(AFX_TEMPVIEWDLG_H__41348B27_D48C_4DAE_88FD_118345B27738__INCLUDED_)
#define AFX_TEMPVIEWDLG_H__41348B27_D48C_4DAE_88FD_118345B27738__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CTempViewDlg dialog
class CTempViewDlg : public CDialog
{
// Construction
public:
CTempViewDlg(CWnd* pParent = NULL); // standard constructor
int m_TData[10];
// Dialog Data
//{{AFX_DATA(CTempViewDlg)
enum { IDD = IDD_TEMPVIEW_DIALOG };
CComboBox m_Ctrl_FreqSelect;
CComboBox m_Ctrl_ComSelect;
CMyScroll02 m_Scroll_Map;
CMSComm m_Com;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTempViewDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
int m_iComSelect; //
int m_iFreqSelect; //
unsigned char RS_Buff[4]; //接收缓冲区
int m_PointY;///////////////////////////只用于测试曲线,可任意删除
BOOL B_IsFirst;
// Generated message map functions
//{{AFX_MSG(CTempViewDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnButton1();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnButton2();
afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
afx_msg void OnCancelMode();
afx_msg void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct);
afx_msg void OnButtonConect();
afx_msg LONG OnComReciver(WPARAM ch, LPARAM port);
afx_msg void OnCommMscomm1();
DECLARE_EVENTSINK_MAP()
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_TEMPVIEWDLG_H__41348B27_D48C_4DAE_88FD_118345B27738__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -