itemdialog.h

来自「opc client 工业自动化控制过程的客户端」· C头文件 代码 · 共 78 行

H
78
字号
#if !defined(AFX_ITEMDIALOG_H__4F44A9BF_8BDC_4007_917A_CE7FCE3BF554__INCLUDED_)
#define AFX_ITEMDIALOG_H__4F44A9BF_8BDC_4007_917A_CE7FCE3BF554__INCLUDED_

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

class COPCServer;
/////////////////////////////////////////////////////////////////////////////
// CItemDialog dialog

class CItemDialog : public CDialog
{
// Construction
public:
	HRESULT BrowseHere(HTREEITEM item);
	void UpdateFlat();
	CItemDialog(IOPCServer* server, CWnd* pParent = NULL);
	CItemDialog(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CItemDialog)
	enum { IDD = IDD_ITEM_DIALOG };
	CTreeCtrl	m_tree;
	CListBox	m_tag;
	CListBox	m_flat;
	CString		access_path;
	CString		filter;
	CString		item_name;
	
	//}}AFX_DATA
	VARTYPE			m_vt;
	OPCNAMESPACETYPE	name_space_type;
	COPCServer*		opc_server;
	OPCBrowseServerAddressSpace	browse;


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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CItemDialog)
	afx_msg void OnBtnAdditem();
	afx_msg void OnBtnAddall();
	afx_msg void OnBtnProperties();
	afx_msg void OnRadNative();
	afx_msg void OnRadBool();
	afx_msg void OnRadShort();
	afx_msg void OnRadLong();
	afx_msg void OnRadFloat();
	afx_msg void OnRadDouble();
	afx_msg void OnRadString();
	afx_msg void OnItemexpandingTree(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnSelchangedTree(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnSelchangeFlat();
	virtual BOOL OnInitDialog();
	afx_msg void OnSelchangeTagList();
	afx_msg void OnDblclkTagList();
	afx_msg void OnDblclkFlat();
	afx_msg void OnChangeEdtFilter();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_ITEMDIALOG_H__4F44A9BF_8BDC_4007_917A_CE7FCE3BF554__INCLUDED_)

⌨️ 快捷键说明

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