📄 mibbrowserview.h
字号:
// MibBrowserView.h : interface of the CMibBrowserView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MIBBROWSERVIEW_H__3086358A_18D2_4590_94D8_4F8EA0B51C49__INCLUDED_)
#define AFX_MIBBROWSERVIEW_H__3086358A_18D2_4590_94D8_4F8EA0B51C49__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CMibBrowserView : public CFormView
{
protected: // create from serialization only
CMibBrowserView();
DECLARE_DYNCREATE(CMibBrowserView)
public:
//{{AFX_DATA(CMibBrowserView)
enum { IDD = IDD_MIBBROWSER_FORM };
CEdit m_oid;
CEdit m_community;
CIPAddressCtrl m_ipadd;
CTreeCtrl m_tree;
CListCtrl m_list;
CString m_edit1;
//}}AFX_DATA
// Attributes
public:
CMibBrowserDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMibBrowserView)
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
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);
virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CMibBrowserView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
CString CurrDir;
CImageList m_iImageList;
HTREEITEM HRoot;
HTREEITEM HSecond;
HTREEITEM HCurrent;
//treeview item;
struct MibNode
{
CString PSnytax;
CString PAccess;
CString PStatus;
CString PDescr;
CString PIndex;
CString POid;
CStringList * PInteger;
};
MibNode Mibdata;
//treeview data;
CStringList TopOid;
CStdioFile MibFile;
CString Line;
CString IndexString;
//Procedures;
//searching for a node in a sub_tree which label is text,
//if find,return the handle of the node,ortherwise,NULL;
bool LoadMib(CString &filename);
HTREEITEM SearchNode(const CString &OidStr);
void AddObject(HTREEITEM ht,CString &Parent_name,
CString &Child_name,CString &num,MibNode* p);
void travl(HTREEITEM hparent);
void InitNodeData(MibNode *Pnode);
HTREEITEM FindNode(HTREEITEM hSubRoot,const CString &text);
void AddPlaceHolder(HTREEITEM ht,CString &Parent_name,
CString &Child_name,CString &num);
void WorkOnInt(CString &str,CStringList* p);
//for reading mib file;
// Generated message map functions
protected:
//{{AFX_MSG(CMibBrowserView)
afx_msg void OnGet();
afx_msg void OnGetnext();
afx_msg void OnGetsubtree();
afx_msg void OnWalk();
afx_msg void OnDestroy();
afx_msg void OnItemexpandedTree1(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnSelchangedTree1(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnLoad();
afx_msg void OnOid();
afx_msg void OnSave();
afx_msg void OnSet();
afx_msg void OnUserman();
afx_msg void OnPwdman();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in MibBrowserView.cpp
inline CMibBrowserDoc* CMibBrowserView::GetDocument()
{ return (CMibBrowserDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MIBBROWSERVIEW_H__3086358A_18D2_4590_9
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -