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

📄 tyopcclientdoc.h

📁 OPC Client 源代码
💻 H
字号:
#if !defined(AFX_TYOPCCLIENTDOC_H__009AFD80_2911_4BA5_8488_AD59D65C2EB6__INCLUDED_)
#define AFX_TYOPCCLIENTDOC_H__009AFD80_2911_4BA5_8488_AD59D65C2EB6__INCLUDED_

#include "OPCData.h"

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

/////////////////////////////////////////////////////////////////////////////
// CTYOPCClientDoc document

class CTYOPCClientDoc : public CDocument
{
protected:
	CTYOPCClientDoc();           // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(CTYOPCClientDoc)

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTYOPCClientDoc)
	public:
	virtual void OnFinalRelease();
	virtual void Serialize(CArchive& ar);   // overridden for document i/o

	protected:
	virtual BOOL OnNewDocument();
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CTYOPCClientDoc();
	//
	void SetSelOPC(COPCRemoteMachine* pOPCRM,COPCServer *pOPCServer,COPCGroup* pOPCGroup);
	void SetSelOPCItem(CStringArray& strSelOPCItem);
	DWORD GetSelBranch();
	void SetSelBranch(DWORD dwSelBranch);

#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	// Generated message map functions
protected:
	//{{AFX_MSG(CTYOPCClientDoc)
	afx_msg void OnOPCRemPCAdd();
	afx_msg void OnOPCRemPCDel();
	afx_msg void OnOPCServerAdd();
	afx_msg void OnOPCServerDel();
	afx_msg void OnOPCServerProperty();
	afx_msg void OnOPCServerConnect();
	afx_msg void OnOPCGroupAdd();
	afx_msg void OnOPCGroupDel();
	afx_msg void OnOPCItemAdd();
	afx_msg void OnOPCItemDel();
	afx_msg void OnOPCItemAsync20Read();
	afx_msg void OnOPCItemAsync20RefreshCache();
	afx_msg void OnOPCItemAsync20RefreshDevice();
	afx_msg void OnOPCItemAsync20Write();
	afx_msg void OnOPCItemSetActive();
	afx_msg void OnOPCItemSetInactive();
	afx_msg void OnUpdateCmdUI(CCmdUI* pCmdUI);
	afx_msg void OnOPCGroupProperty();
	afx_msg void OnFilePrint();
	afx_msg void OnAutoOpenFile();
	afx_msg void OnUpdateAutoOpenFile(CCmdUI* pCmdUI);
	afx_msg void OnOPCRemPCProperty();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
	// Generated OLE dispatch map functions
	//{{AFX_DISPATCH(CTYOPCClientDoc)
		// NOTE - the ClassWizard will add and remove member functions here.
	//}}AFX_DISPATCH
	DECLARE_DISPATCH_MAP()
	DECLARE_INTERFACE_MAP()
public:
	void LoadDocument();
	COPCManagement	m_cOPCMgt;
protected:

	DWORD		m_dwSelBranch;			//当前选择层
	//OPCITEM------------------------------------------------
	CStringArray	m_strSelOPCItem;
	//
	BOOL		m_bAutoOpenFile;		//启动时自动加载文件
};

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

#endif // !defined(AFX_TYOPCCLIENTDOC_H__009AFD80_2911_4BA5_8488_AD59D65C2EB6__INCLUDED_)

⌨️ 快捷键说明

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