browserview.h

来自「此为Insight opc client InfoServerExplorer源」· C头文件 代码 · 共 179 行

H
179
字号
/////////////////////////////////////////////////////////////////////////////
//
//  OPC DataAccess VC++ Client:	BrowserView.h
//								(Header File)
//
/////////////////////////////////////////////////////////////////////////////
//
//          Author: Raphael Imhof
//    Initial Date: 11/04/98
//       $Workfile: BrowserView.h $
//       $Revision: 1 $
//           $Date: 7/27/99 5:22p $
//   Target System: Microsoft Windows NT 4.0
//     Environment: Visual C++ 5.0 / OPC DataAccess 1.0/2.0
//         Remarks: 
//
/////////////////////////////////////////////////////////////////////////////
//
//     Description: interface of the CBrowserView class.
//					left pane view: server/group explorer.
//					
//
/////////////////////////////////////////////////////////////////////////////
//
//  History of Changes     (Please remove very old comments and blank lines!)
//            $Log: /IDK/OPCServer/clients/VC++/InfoServerExplorer/BrowserView.h $
// 
// 1     7/27/99 5:22p Imhof
// 
// 1     7/27/99 5:18p Imhof
// 
// 10    2/24/99 11:33a Imhof
// Added a ValidateItem menu handler.
// 
// 9     1/15/99 6:43p Imhof
// Updated legal notice.
// 
// 8     12/14/98 4:46p Imhof
// Modifications for OPC 2.0
// 
// 7     11/25/98 3:00p Betrisey
// Added menu item <OPC> <Print Statistic to log file>
// All the InfoServer statistic counters are printed out to the log file.
// Note that we do "misuse" the IPersist::Save() API to do that. This API
// returns "not implemented".
// 
// 6     11/12/98 5:56p Imhof
// Added 3 OnUpdateXItem to avoid crashes if the server is not connected.
// 
// 5     11/10/98 2:20p Imhof
// Added file header's.
// 
// 
//  $Nokeywords:$ (To avoid useless search while checking in.)
/////////////////////////////////////////////////////////////////////////////
//  Copyright (C) 1998, Siemens Building Technologies, Inc. Landis Division
//
// SIEMENS BUILDING TECHNOLOGIES, INC. IS PROVIDING THE FOLLOWING
// EXAMPLES OF CODE AS SAMPLE ONLY.
//
// SIEMENS BUILDING TECHNOLOGIES, INC.  MAKES NO REPRESENTATIONS
// OR WARRANTIES OF ANY KIND  WITH RESPECT TO THE VALIDTY OF THE 
// CODES   OR   DESIRED   RESULTS   AND   DISCLAIMS   ALL   SUCH 
// REPRESENTATIONS   AND   WARRANTIES,  INCLUDING  FOR  EXAMPLE, 
// WARRANTIES  OF  MERCHANTABILITY  AND FITNESS FOR A PARTICULAR 
// PURPOSE.    SIEMENS  BUILIDNG  TECHNOLOGIES,  INC.  DOES  NOT 
// REPRESENT  OR  WARRANT  THAT  THE  FOLLOWING CODE SAMPLES ARE 
// ACCURATE, VALID, COMPLETE OR CURRENT.
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_BROWSERVIEW_H__4648BED6_2AEA_11D2_AD89_00104B2C9D06__INCLUDED_)
#define AFX_BROWSERVIEW_H__4648BED6_2AEA_11D2_AD89_00104B2C9D06__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CBrowserView view

class CBrowserView : public CTreeView
{
protected:
	CBrowserView();           // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(CBrowserView)

	BOOL IsServerSelected();
	BOOL IsGroupSelected();
	BOOL IsItemSelected();

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CBrowserView)
	public:
	virtual void OnInitialUpdate();
	protected:
	virtual void OnDraw(CDC* pDC);      // overridden to draw this view
	virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
	//}}AFX_VIRTUAL

// Implementation
protected:
	virtual ~CBrowserView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	// Generated message map functions
protected:
	//{{AFX_MSG(CBrowserView)
	afx_msg void OnOpcAddgroup();
	afx_msg void OnUpdateOpcAddgroup(CCmdUI* pCmdUI);
	afx_msg void OnOpcAdditem();
	afx_msg void OnUpdateOpcAdditem(CCmdUI* pCmdUI);
	afx_msg void OnSelchanged(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnOpcEditgroup();
	afx_msg void OnUpdateOpcEditgroup(CCmdUI* pCmdUI);
	afx_msg void OnOpcInfoserverstatus();
	afx_msg void OnOpcCommanditem();
	afx_msg void OnUpdateOpcCommanditem(CCmdUI* pCmdUI);
	afx_msg void OnOpcReaditem();
	afx_msg void OnUpdateOpcReaditem(CCmdUI* pCmdUI);
	afx_msg void OnOpcRefreshgroup();
	afx_msg void OnUpdateOpcRefreshgroup(CCmdUI* pCmdUI);
	afx_msg void OnOpcRemoveitem();
	afx_msg void OnUpdateOpcRemoveitem(CCmdUI* pCmdUI);
	afx_msg void OnOpcRemovegroup();
	afx_msg void OnUpdateOpcRemovegroup(CCmdUI* pCmdUI);
	afx_msg void OnDestroy();
	afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
	afx_msg void OnOpcReloadfromserver();
	afx_msg void OnUpdateOpcReloadfromserver(CCmdUI* pCmdUI);
	afx_msg void OnOpcClonegroup();
	afx_msg void OnUpdateOpcClonegroup(CCmdUI* pCmdUI);
	afx_msg void OnOpcReloadserver();
	afx_msg void OnUpdateOpcReloadserver(CCmdUI* pCmdUI);
	afx_msg void OnOpcEdititem();
	afx_msg void OnUpdateOpcEdititem(CCmdUI* pCmdUI);
	afx_msg void OnOpcOptions();
	afx_msg void OnOpcConnect();
	afx_msg void OnUpdateOpcConnect(CCmdUI* pCmdUI);
	afx_msg void OnOpcDisconnect();
	afx_msg void OnUpdateOpcDisconnect(CCmdUI* pCmdUI);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnKeydown(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnUpdateOpcInfoserverstatus(CCmdUI* pCmdUI);
	afx_msg void OnOpcPrintstatistictologfile();
	afx_msg void OnUpdateOpcPrintstatistictologfile(CCmdUI* pCmdUI);
	afx_msg void OnOpcCancel();
	afx_msg void OnUpdateOpcCancel(CCmdUI* pCmdUI);
	afx_msg void OnOpcValidateitem();
	afx_msg void OnUpdateOpcValidateitem(CCmdUI* pCmdUI);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	CImageList* m_pTreeImageList;

	//popup workaround: 
	HTREEITEM	m_pOldSel;
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_BROWSERVIEW_H__4648BED6_2AEA_11D2_AD89_00104B2C9D06__INCLUDED_)

⌨️ 快捷键说明

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