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

📄 browserdlg.h

📁 最简单的VC编写的OPC客户端程序
💻 H
字号:
// BrowserDlg.h : header file
//
//--------------------------------------------------------- 
// (c) COPYRIGHT 2003,2004 http://www.opc-china.com INC.
// ALL RIGHTS RESERVED
// Original Author:Jigang Si
// Original Author Email:economic@126.com 
//--------------------------------------------------------- 
#if !defined(AFX_BROWSERDLG_H__B6E2654F_C5AB_435D_BB43_EE209E9C4096__INCLUDED_)
#define AFX_BROWSERDLG_H__B6E2654F_C5AB_435D_BB43_EE209E9C4096__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "OPCDA.H"
#include "OPCError.h"
/////////////////////////////////////////////////////////////////////////////
// CBrowserDlg dialog

class CBrowserDlg : public CDialog
{
// Construction
public:
	CBrowserDlg(CWnd* pParent = NULL);	// standard constructor
	IOPCBrowseServerAddressSpace *CreateOPCBrowser(WCHAR *szName);
	
// Dialog Data
	//{{AFX_DATA(CBrowserDlg)
	enum { IDD = IDD_BROWSER_DIALOG };
	CTreeCtrl	m_MyTree;
	CComboBox	m_DataTypeCtrl;
	CComboBox	m_BrTypeCtrl;
	CComboBox	m_AccessRightCtrl;
	int		m_AccessRight;
	int		m_BrType;
	int		m_DataType;
	//}}AFX_DATA
    void BrowseLevel(HTREEITEM gParent,CString FullName,IOPCBrowseServerAddressSpace *pIOPCBrowse);

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CBrowserDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;
	IOPCServer                   *pIOPCServer;
	IOPCBrowseServerAddressSpace *pIOPCBrowse;
	IMalloc                      *pIMalloc;
	// Generated message map functions
	//{{AFX_MSG(CBrowserDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnClose();
	afx_msg void OnStartButton();
	afx_msg void OnExitButton();
	afx_msg void OnSelchangeAccessrightCombo();
	afx_msg void OnSelchangeBrowsefiltertypeCombo();
	afx_msg void OnSelchangeDatatypeCombo();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_BROWSERDLG_H__B6E2654F_C5AB_435D_BB43_EE209E9C4096__INCLUDED_)

⌨️ 快捷键说明

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