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

📄 电力谐波测试仪view.h

📁 电力谐波测量装置对电量,谐波等数据的模拟各种曲线图,使用vc开发.
💻 H
字号:
// 电力谐波测试仪View.h : interface of the CMyView class
//
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INCLUDES()
#include "sstabctl.h"
#include "mscomm.h"
#include "mdctogglebutton.h"
//}}AFX_INCLUDES

#if !defined(AFX_VIEW_H__639B84D4_D39A_422C_B4CA_FE04AA70FB0D__INCLUDED_)
#define AFX_VIEW_H__639B84D4_D39A_422C_B4CA_FE04AA70FB0D__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include"Exeditpinpu.h"
#include"Exeditabc.h"
#include"Exeditzhutu.h"
#include"Exeditthd.h"
#include"Exedit.h"
//#include"Exeditu.h"
#include "Exeditu.h"	// Added by ClassView
class CMyView : public CFormView
{
protected: // create from serialization only
	CMyView();
	DECLARE_DYNCREATE(CMyView)

public:
	//{{AFX_DATA(CMyView)
	enum { IDD = IDD_MY_FORM };
	CEdit	m_12;
	Exeditabc	m_abc;
	CSSTabCtl	m_tab2;
	CSSTabCtl	m_tab3;
	CSSTabCtl	m_tab4;
	CMSComm	m_Com;
	CMdcToggleButton	m_start;
	CMdcToggleButton	m_end;
	CSSTabCtl	m_tab1;
	//}}AFX_DATA

// Attributes
public:
	CMyDoc* GetDocument();

	Exeditpinpu pinpua;
// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMyView)
	public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void OnInitialUpdate(); // called first time after construct
	//}}AFX_VIRTUAL

// Implementation
public:
	void OnProperties();
	int ntab;
	long m_length;
	bool bReceive;
	byte bt[2048];
	int m_nPort;
	int m_nTime;
	CString m_strSendString;
	CString m_strSettings;
	float atoibase(int i);
	float atoibase2(int i);
	void OpenPort();
	char ConvertHexChar(char ch);
	int String2Hex(CString str, CByteArray &senddata);
    Exeditu m_eua;
	Exeditzhutu m_ezhutua;
	Exeditpinpu m_epinpua;
	Exeditthd m_ethda;
	Exeditu m_eub;
	Exeditzhutu m_ezhutub;
	Exeditpinpu m_epinpub;
	Exeditthd m_ethdb;
	Exeditu m_euc;
	Exeditzhutu m_ezhutuc;
	Exeditpinpu m_epinpuc;
	Exeditthd m_ethdc;

//	Exedit m_eua;
//	Exedit m_epinpua;
//	Exedit m_ethda;
	virtual ~CMyView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CMyView)
	afx_msg void OnClickTogglebutton1();
	afx_msg void OnClickTogglebutton2();
	afx_msg void OnOnCommMscomm1();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnClickSstab2(short PreviousTab);
	DECLARE_EVENTSINK_MAP()
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in 电力谐波测试仪View.cpp
inline CMyDoc* CMyView::GetDocument()
   { return (CMyDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

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

#endif // !defined(AFX_VIEW_H__639B84D4_D39A_422C_B4CA_FE04AA70FB0D__INCLUDED_)

⌨️ 快捷键说明

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