📄 dlg_draw.h
字号:
#if !defined(AFX_DLG_DRAW_H__D7843854_0286_4C46_B854_4545B092E215__INCLUDED_)
#define AFX_DLG_DRAW_H__D7843854_0286_4C46_B854_4545B092E215__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DLG_DRAW.h : header file
#include "CurveCtrl.h"
/////////////////////////////////////////////////////////////////////////////
// DLG_DRAW dialog
class DLG_DRAW : public CDialog
{
// Construction
public:
DLG_DRAW(CWnd* pParent = NULL); // standard constructor
//自定义函数-----------------------------------------------------------------------------------
bool We_open(CString v_sName,CString v_sNum,int v_iNum); //获取数据库内容
bool We_save(CString v_sSql); //数据库保存
void We_add(CPoint pt); //图形放大
//自定义变量-----------------------------------------------------------------------------------
CCurveCtrl* v_pCurveCtrl; //绘制图形指针
int v_iCurveCount; //绘制图形序号
int v_iX_number; //数据采集x计数
int v_iXmax_dot; //最大的采集点数
int v_iXmax_page; //满屏显示点数
int v_iPage; //页显示点数
int v_iXh; //绘制图形序号
int v_iDs_time; //定时时间
int v_iMove_num; //移动点数
// Dialog Data
//{{AFX_DATA(DLG_DRAW)
enum { IDD = IDD_DLG_DRAW };
CButton m_cY_scale;
CComboBox m_cMove_num;
CComboBox m_cName;
CStatic m_cCurve;
CButton m_cRight;
CButton m_cLeft;
CButton m_cDec;
CButton m_cAll;
CButton m_cAdd;
int m_iInput;
int m_iMax;
CString m_sUnit;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(DLG_DRAW)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(DLG_DRAW)
virtual BOOL OnInitDialog();
afx_msg void OnAdd();
afx_msg void OnDec();
afx_msg void OnRight();
afx_msg void OnAll();
afx_msg void OnLeft();
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnRead();
afx_msg void OnSelchangeMoveNum();
afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt);
afx_msg void OnYScale();
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DLG_DRAW_H__D7843854_0286_4C46_B854_4545B092E215__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -