📄 piddlg.h
字号:
// PIDDlg.h : header file
//
#if !defined(AFX_PIDDLG_H__3D6E240B_AB0D_4A6D_A7B1_312A0A89BBDB__INCLUDED_)
#define AFX_PIDDLG_H__3D6E240B_AB0D_4A6D_A7B1_312A0A89BBDB__INCLUDED_
#include "PID.h" // Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CPIDDlg dialog
class CPIDDlg : public CDialog
{
// Construction
public:
int m_nRow; //画曲线时的横坐标
void InitData();
void RefreshView();
void Draw();
PID m_Pid;
CPIDDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CPIDDlg)
enum { IDD = IDD_PID_DIALOG };
float m_fKp;
float m_fMv;
float m_fPv;
float m_fSv;
float m_fTd;
float m_fTi;
float m_fTs;
int m_nControl;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CPIDDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
private:
CPoint m_ptSv;
CPoint m_ptMv;
CPoint m_ptPv;
// Generated message map functions
//{{AFX_MSG(CPIDDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnButtonContinue();
afx_msg void OnButtonPause();
afx_msg void OnButtonQuit();
afx_msg void OnButtonStart();
afx_msg void OnButtonStop();
afx_msg void OnClose();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_PIDDLG_H__3D6E240B_AB0D_4A6D_A7B1_312A0A89BBDB__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -