snmp_cwdmView.h
上传用户:lvjun8202
上传日期:2013-04-30
资源大小:797k
文件大小:3k
- // snmp_cwdmView.h : interface of the CSnmp_cwdmView class
- //
- /////////////////////////////////////////////////////////////////////////////
- #if !defined(AFX_SNMP_CWDMVIEW_H__AD4137B9_AC01_4EBF_A1FB_907E9AF725FD__INCLUDED_)
- #define AFX_SNMP_CWDMVIEW_H__AD4137B9_AC01_4EBF_A1FB_907E9AF725FD__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- class CSnmp_cwdmView : public CTreeView
- {
- protected: // create from serialization only
- CSnmp_cwdmView();
- DECLARE_DYNCREATE(CSnmp_cwdmView)
- // Attributes
- public:
- COAMDoc* GetDocument();
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CSnmp_cwdmView)
- public:
- virtual void OnDraw(CDC* pDC); // overridden to draw this view
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- virtual void Serialize(CArchive& ar);
- protected:
- virtual void OnInitialUpdate(); // called first time after construct
- virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
- virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
- virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CSnmp_cwdmView();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected:
- HTREEITEM m_hItems[100];
- int m_nIndex;
- /* void ReadTreeViewContent(CArchive& ar, CTreeCtrl& refCtrl);
- void RecursiveWriteItems(CArchive& ar, CTreeCtrl& refCtrl, HTREEITEM hItem);
- void WriteTreeViewContent(CArchive& ar, CTreeCtrl& refCtrl);*/
- BOOL GetFullPath(HTREEITEM hItem,CString &str, CString &str_oid);
- enum { recordRegular, recordData,recordPush, recordPop };
- // Generated message map function
- public:
- void ReadTreeViewContent(CArchive& ar, CTreeCtrl& refCtrl);
- void RecursiveWriteItems(CArchive& ar, CTreeCtrl& refCtrl, HTREEITEM hItem);
- void WriteTreeViewContent(CArchive& ar, CTreeCtrl& refCtrl);
- protected:
- //{{AFX_MSG(CSnmp_cwdmView)
- afx_msg void OnNewitem();
- afx_msg void OnDelete();
- afx_msg void OnSize(UINT nType, int cx, int cy);
- afx_msg void OnSelchanged(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
- afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- #ifndef _DEBUG // debug version in snmp_cwdmView.cpp
- inline CSnmp_cwdmDoc* CSnmp_cwdmView::GetDocument()
- { return (CSnmp_cwdmDoc*)m_pDocument; }
- #endif
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_SNMP_CWDMVIEW_H__AD4137B9_AC01_4EBF_A1FB_907E9AF725FD__INCLUDED_)