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

📄 tyopcclientdoc0.h

📁 OPC Client 源代码
💻 H
字号:
// TYOPCClientDoc.h : interface of the CTYOPCClientDoc class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_TYOPCCLIENTDOC_H__129CE189_CBCB_4C93_8348_81EC36BAF533__INCLUDED_)
#define AFX_TYOPCCLIENTDOC_H__129CE189_CBCB_4C93_8348_81EC36BAF533__INCLUDED_

#include "OPCData.h"

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


class CTYOPCClientDoc : public CDocument
{
protected: // create from serialization only
	CTYOPCClientDoc();
	DECLARE_DYNCREATE(CTYOPCClientDoc)

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CClientDoc)
	public:
	virtual BOOL OnNewDocument();
	virtual void Serialize(CArchive& ar);
	//}}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

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CClientDoc)
	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
	DECLARE_MESSAGE_MAP()

	// Generated OLE dispatch map functions
	//{{AFX_DISPATCH(CClientDoc)
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}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__129CE189_CBCB_4C93_8348_81EC36BAF533__INCLUDED_)

⌨️ 快捷键说明

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