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

📄 contentview.h

📁 此为Insight opc client InfoServerExplorer源程序
💻 H
字号:
/////////////////////////////////////////////////////////////////////////////
//
//  OPC DataAccess VC++ Client:	ContentView.h
//								(Header File)
//
/////////////////////////////////////////////////////////////////////////////
//
//          Author: Raphael Imhof
//    Initial Date: 11/04/98
//       $Workfile: ContentView.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 CContentView class.
//					right pane view: item list.
//					
//
/////////////////////////////////////////////////////////////////////////////
//
//  History of Changes     (Please remove very old comments and blank lines!)
//            $Log: /IDK/OPCServer/clients/VC++/InfoServerExplorer/ContentView.h $
// 
// 1     7/27/99 5:22p Imhof
// 
// 1     7/27/99 5:18p Imhof
// 
// 6     1/15/99 6:43p Imhof
// Updated legal notice.
// 
// 5     11/12/98 2:39p Imhof
// Reenabled the remove item
// 
// 4     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_CONTENTVIEW_H__4648BED7_2AEA_11D2_AD89_00104B2C9D06__INCLUDED_)
#define AFX_CONTENTVIEW_H__4648BED7_2AEA_11D2_AD89_00104B2C9D06__INCLUDED_

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

#include "group.h"
#include "item.h"

/////////////////////////////////////////////////////////////////////////////
// CContentView view

class CContentView : public CListView
{
protected:
	CContentView();           // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(CContentView)

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CContentView)
	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 ~CContentView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	// Generated message map functions
protected:
	//{{AFX_MSG(CContentView)
		afx_msg LONG OnContentViewUpdate(UINT wparam ,LONG lparam);
	afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
	afx_msg void OnOpcCommanditem();
	afx_msg void OnUpdateOpcCommanditem(CCmdUI* pCmdUI);
	afx_msg void OnOpcEdititem();
	afx_msg void OnUpdateOpcEdititem(CCmdUI* pCmdUI);
	afx_msg void OnOpcReaditem();
	afx_msg void OnUpdateOpcReaditem(CCmdUI* pCmdUI);
	afx_msg void OnOpcRemoveitem();
	afx_msg void OnUpdateOpcRemoveitem(CCmdUI* pCmdUI);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

private:
	CImageList* m_pListImageList;

	void UpdateGroup(CView* pSender, LPARAM lHint, CObject* pHint, CListCtrl& list, CGroup** group);
	void UpdateItem(CView* pSender, LPARAM lHint, CObject* pHint, CListCtrl& list, CItem** item);
	void AddItem(CListCtrl& list, CItem** item, int index);
	void UpdateItemValues(CListCtrl& list, CItem** item, int index);
};

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

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

#endif // !defined(AFX_CONTENTVIEW_H__4648BED7_2AEA_11D2_AD89_00104B2C9D06__INCLUDED_)

⌨️ 快捷键说明

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