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

📄 opcset.h

📁 VC++实现的预测控制
💻 H
字号:
#if !defined(AFX_OPCSET_H__8DBA734B_75AC_41C1_AFD4_0F344404EB93__INCLUDED_)
#define AFX_OPCSET_H__8DBA734B_75AC_41C1_AFD4_0F344404EB93__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// OPCSET.h : header file
//
typedef struct tag{
	CString  name;//数据项名
	double   value;//数据制
	int  pos;//数据在OPC Client端位置
}mytag;
#include "OPCClient.h"
/////////////////////////////////////////////////////////////////////////////
class COPCSet : public CDialog
{
// Construction
public:
	COPCSet(COPCClient* parent, IOPCServer* pServer, CWnd* pParent = NULL);  // standard constructor

// Dialog Data
	//{{AFX_DATA(COPCSet)
	enum { IDD = IDD_OPCSET_DIALOG };
	CListBox	m_relist;
	CListBox	m_aolist;
	CListBox	m_ailist;
    CListBox	m_flat;
	CListBox	m_tags;
	CTreeCtrl	m_tree;
	CString	m_itemID;
	CButtonXp	m_btnOK;
	CButtonXp	m_btnCancel;
    CButtonXp	m_bt1;
	//}}AFX_DATA

public:
	COPCClient * pDoc;
	CString  m_filter;
    CString  m_accessPath;
	VARTYPE  m_vt;
	OPCNAMESPACETYPE  nameSpaceType;
	//static BOOL Hand;
	static int ItemCount;//加入的数据项的个数
	CString  m_stringname;//算法中数据项名称
	CString  m_samename;//如果加入相同的名字
	int CountItem;//选择时计数
	bool m_select;//选择由哪个记录集记录
	int  Itemedit;//要进行修改的条的数字
    int Count;//
	int m_CurveAiCount,m_CurveAoCount;
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(COPCSet)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
    OPCBrowseServerAddressSpace browse;
    void     UpdateFlat();
    HRESULT  BrowseHere( HTREEITEM item );
	// Generated message map functions
	//{{AFX_MSG(COPCSet)
	virtual void OnOK();
	virtual void OnCancel();
	afx_msg void OnSelchangeAilist();
	afx_msg void OnDblclkAilist();
	afx_msg void OnSelchangeAolist();
	afx_msg void OnDblclkAolist();
	virtual BOOL OnInitDialog();
	afx_msg void OnSelchangeFlat();
	afx_msg void OnSelchangedOpcTree(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnSelchangeOpcPropertiesList();
	afx_msg void OnDblclkOpcPropertiesList();
	afx_msg void OnDblclkFlat();
	afx_msg void OnItemexpandingOpcTree(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnItemdelete();
	afx_msg void OnSelchangeRelist();
	afx_msg void OnItemmoveup();
	afx_msg void OnItemmovedown();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_OPCSET_H__8DBA734B_75AC_41C1_AFD4_0F344404EB93__INCLUDED_)

⌨️ 快捷键说明

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