www.pudn.com > SnmpToplog.rar > MySnmpDlg.h


// MySnmpDlg.h : header file 
// 
 
#if !defined(AFX_MYSNMPDLG_H__9A1B7D5E_F1AE_4ADA_ABE6_148537E43723__INCLUDED_) 
#define AFX_MYSNMPDLG_H__9A1B7D5E_F1AE_4ADA_ABE6_148537E43723__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
///////////////////////////////////////////////////////////////////////////// 
// CMySnmpDlg dialog 
#include "myroute.h" 
#include  
#include "MessageDlg.h" 
#include "ActiveHostDlg.h" 
#include "TipDlg.h" 
class CMySnmpDlg : public CDialog 
{ 
// Construction 
public: 
	void DrawHost(CDC *pdc, CPoint point,COLORREF crColor); 
	void ShowTouPu(); 
	CMessageDlg m_messageDlg; 
	void OnFinish(); 
	int m_nListType; //标识列表控件显示内容的类型 
	BOOL IsBeginWith(char* pString,char* pSubString); 
	void Analyse(char* szName,char* szValue); 
	SNMPAPI_STATUS ValToStr(smiLPVALUE dValue,smiUINT32 nSize, LPSTR szValue); 
	void GetRouteInfo(); 
	BOOL InitSnmp(); 
	CMySnmpDlg(CWnd* pParent = NULL);	// standard constructor 
 
// Dialog Data 
	//{{AFX_DATA(CMySnmpDlg) 
	enum { IDD = IDD_MYSNMP_DIALOG }; 
	CListCtrl	m_ctrlListCtrl; //列表框对象 
	CIPAddressCtrl	m_ctrlIPAddress; 
	//}}AFX_DATA 
 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CMySnmpDlg) 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
	HICON m_hIcon; 
	CMyRoute m_Route;// 路由器对象 
 
	char m_IPAddress[20]; 
	HSNMP_SESSION m_hSession; 
	HSNMP_ENTITY m_hDstEntity; 
	HSNMP_CONTEXT m_hContext; 
	HSNMP_VBL m_hVBL; 
 
	CRect m_RightRect; 
	CPtrArray m_TipDataArray; 
	CTipDlg* m_pTipDlg; 
	// Generated message map functions 
	//{{AFX_MSG(CMySnmpDlg) 
	virtual BOOL OnInitDialog(); 
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam); 
	afx_msg void OnPaint(); 
	afx_msg HCURSOR OnQueryDragIcon(); 
	virtual void OnOK(); 
	afx_msg void OnButtonstart(); 
	afx_msg void OnButtonsysteminfo(); 
	afx_msg void OnButtonroutetable(); 
	afx_msg void OnButtonsubnetinfo(); 
	afx_msg void OnButtontuopu(); 
	afx_msg void OnButtonquit(); 
	afx_msg void OnButtonabout(); 
	afx_msg void OnClose(); 
	afx_msg void OnDblclkList1(NMHDR* pNMHDR, LRESULT* pResult); 
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point); 
	afx_msg void OnTimer(UINT nIDEvent); 
	//}}AFX_MSG 
	afx_msg void OnReceive(); 
	DECLARE_MESSAGE_MAP() 
}; 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_MYSNMPDLG_H__9A1B7D5E_F1AE_4ADA_ABE6_148537E43723__INCLUDED_)