⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tsqczview.h

📁 一个水轮机调速的控制程序
💻 H
字号:
#if !defined(AFX_TSQCZVIEW_H__208BFBD5_E480_11D6_B840_AAE76EFB5E14__INCLUDED_)
#define AFX_TSQCZVIEW_H__208BFBD5_E480_11D6_B840_AAE76EFB5E14__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// TsqCzView.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CTsqCzView form view
#include "TsqDoc.h"
#ifndef __AFXEXT_H__
#include <afxext.h>
#endif
#include "editex.hxx"
#include "CzButton.h"
class CTsqCzView : public CFormView
{
protected:
	CEditEx   m_et_jzpl;
	CEditEx   m_et_plgd;
	CEditEx   m_et_jzyg;
	CEditEx   m_et_glgd;
	CEditEx   m_et_dqst;
	CEditEx   m_et_dysc;
	CEditEx   m_et_dqkx;
	CEditEx   m_et_sdst;
	CCzButton   m_BtPgz;
	CCzButton   m_BtPgj;
	CCzButton   m_BtGgz;
	CCzButton   m_BtGgj;
	CCzButton   m_BtKxz;
	CCzButton   m_BtKxj;
	CCzButton   m_BtGzwp;
	CCzButton   m_BtGzpg;
	CCzButton   m_BtGltj;
	CCzButton   m_BtKdtj;
	CCzButton   m_BtGlzd;
	CCzButton   m_BtGlsd;
	CCzButton   m_BtFh;

	         // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(CTsqCzView)

// Form Data
public:
	CTsqCzView();  
	bool state[16];
	bool  txyc;//==1通讯异常,通讯正常
	/*****************
	state[0]==1 开机
	state[1]==1 停机
	state[2]==1并网
	state[3]==1调相
	state[4]==1导叶手动,导叶自动
	state[5]==1浆叶手动,浆叶自动(单调无)
	state[6]==1功率调节,开度调节
	state[7]==1功率手动,功率自动
	state[8]==1水头手动,水头自动
	state[9]==1调速器故障,调速器正常
	state[10]==1跟踪频给,跟踪网频
	state[12]==1桨叶故障锁定(单调无)
	state[13]==1停机备用
	*************************/
	//{{AFX_DATA(CTsqCzView)
	enum { IDD = IDD_TSQ_CZ };
	int		m_dqkx;
	float	m_dqst;
	float	m_dysc;
	float	m_glgd;
	float	m_jzpl;
	float	m_jzyg;
	float	m_plgd;
	float	m_sdst;
	//}}AFX_DATA

// Attributes
public:

// Operations
public:
CTsqDoc* GetDocument();
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTsqCzView)
	public:
	virtual void OnInitialUpdate();
	virtual BOOL DestroyWindow();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual void OnDraw(CDC* pDC);
	//}}AFX_VIRTUAL

// Implementation
protected:
	virtual ~CTsqCzView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	// Generated message map functions
	//{{AFX_MSG(CTsqCzView)
	afx_msg void OnBtJk();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG  // debug version in TsqView.cpp
inline CTsqDoc* CTsqView::GetDocument()
   { return (CTsqDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_TSQCZVIEW_H__208BFBD5_E480_11D6_B840_AAE76EFB5E14__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -