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

📄 tsqview.h

📁 一个水轮机调速的控制程序
💻 H
字号:
// TsqView.h : interface of the CTsqView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_TSQVIEW_H__208BFBCD_E480_11D6_B840_AAE76EFB5E14__INCLUDED_)
#define AFX_TSQVIEW_H__208BFBCD_E480_11D6_B840_AAE76EFB5E14__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "TsqDoc.h"
#include "editex.hxx"
#include "CzButton.h"
class CTsqView : public CFormView
{
protected: // create from serialization only
//	CFont *pFont;
//	int lHeight;
//	int cWidth;
	DECLARE_DYNCREATE(CTsqView)

public:
	CTsqView();
	CCzButton m_CzBt;
	CCzButton m_ZcdBt;
	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(CTsqView)
	enum { IDD = IDD_TSQ_FORM };
	float	m_dykd;
	float	m_mt_dykd;
	float	m_dyph;
	float	m_mt_dyph;
	float	m_jzpl;
	float	m_jzyg;
	float	m_dqst;
	float	m_dysc;
	float	m_glgd;
	float	m_plgd;
	int		m_dqkx;
	//}}AFX_DATA

// Attributes
public:
	CTsqDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTsqView)
	public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual BOOL DestroyWindow();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void OnInitialUpdate(); // called first time after construct
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnDraw(CDC* pDC);
	//}}AFX_VIRTUAL

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

protected:
	CEditEx   m_et_dykd;
	CEditEx   m_et_dyph;
	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;

// Generated message map functions
protected:
	//{{AFX_MSG(CTsqView)
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnBtCz();
	afx_msg void OnBtZcd();
	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_TSQVIEW_H__208BFBCD_E480_11D6_B840_AAE76EFB5E14__INCLUDED_)

⌨️ 快捷键说明

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