- // MainFrm.h : interface of the CMainFrame class
- //
- /////////////////////////////////////////////////////////////////////////////
- #if !defined(AFX_MAINFRM_H__E12E6A4B_1CE4_11D3_BACD_12345600558E__INCLUDED_)
- #define AFX_MAINFRM_H__E12E6A4B_1CE4_11D3_BACD_12345600558E__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- //#include "CompenentFormer.h"
- #include "ReportBar.h"
- #include "OAMControlBar.h"
- #include "WorkSpaceBar.h"
- #include "OAMFrameWnd.h"
- //#include "PromptBar.h" // Added by ClassView
- //#include "IsLinkDlg.h"
- //#include "LinkWatch.h"
- //#include "SubproFrame.h"
- #include "snmp1.h"
- #define CFrameWndSpecial COAMFrameWnd
- #define wMsg WM_USER+5 /*定义用户自定义消息*/
- class CMainFrame : public CFrameWndSpecial
- {
- protected: // create from serialization only
- CMainFrame();
- DECLARE_DYNCREATE(CMainFrame)
- // Attributes
- public:
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CMainFrame)
- public:
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- virtual BOOL PreTranslateMessage(MSG* pMsg);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CMainFrame();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected: // control bar embedded members
- //void Start(int flag);
- void Next(LPTSTR Oid);
- public:
- void Start(int flag);
- BOOL NoReport;
- int m_nDatePaneNo;
- int m_nTimePaneNo;
- CStatusBar m_wndStatusBar;
- CMenuBar m_wndMenuBar; // menu bar
- CAnimateCtrl m_wndAnimate;
- CAdressComboBox m_wndAddress;
- CToolBar m_wndToolBar;
- CReBar m_wndReBar;
- CReportBar m_wndReportBar;
- CWorkSpaceBar m_wndWorkspace;
- CCool3DWndManager m_3DManager;
- CString m_agent; /*代理设备的ip地址*/
- CString m_community;/*团体字*/
- CString m_userpower;/*用户权限*/
- BOOL m_power;
- CSNMP1 pSnmp;
- LPTSTR m_sOid[10];
- smiLPVALUE m_value[10];
- char* str[10];
- CString m_oid;
- LPCSTR m_initOid[10];
- LPTSTR m_OidNext[50];
- LPTSTR m_valueNext[50];
- int flag;
- int SelfFlag;
- int test[16][4];
- // Generated message map functions
- protected:
- afx_msg void OnMenuSelect(UINT nItemID, UINT nFlags, HMENU hSysMenu);
- afx_msg void OnInitMenuPopup(CMenu* pPopupMenu, UINT nIndex, BOOL bSysMenu);
- afx_msg void OnUpdateDate(CCmdUI* pCmdUI);
- afx_msg void OnUpdateTime(CCmdUI* pCmdUI);
- afx_msg void OnDropDown(NMHDR* pNotifyStruct, LRESULT* pResult);
- BOOL CreateToolBar();
- //{{AFX_MSG(CMainFrame)
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- afx_msg void OnTimer(UINT nIDEvent);
- afx_msg void OnClose();
- afx_msg void OnInitMenu(CMenu* pMenu);
- afx_msg void OnNotReport();
- afx_msg void OnUpdateNotReport(CCmdUI* pCmdUI);
- afx_msg void OnSetagent();
- afx_msg void OnActionGet();
- afx_msg void OnActionGetbulk();
- afx_msg void OnActionGetnext();
- afx_msg void OnActionSet();
- afx_msg void OnRecv();
- afx_msg void OnAddnode();
- afx_msg void OnUser();
- afx_msg void OnUpdateActionGet(CCmdUI* pCmdUI);
- afx_msg void OnUpdateActionGetnext(CCmdUI* pCmdUI);
- afx_msg void OnUpdateActionSet(CCmdUI* pCmdUI);
- afx_msg void OnUpdateUser(CCmdUI* pCmdUI);
- //}}AFX_MSG
- afx_msg void OnNewAddress();
- afx_msg void OnNewAddressEnter();
- DECLARE_MESSAGE_MAP()
- private:
- UINT m_nStatusPane1ID;
- UINT m_nStatusPane1Style;
- INT m_nStatusPane1Width;
- BOOL m_bMenuSelect;
- private:
- BOOL InitStatusBar(UINT *pIndicators, int nSize, int nSeconds);
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_MAINFRM_H__E12E6A4B_1CE4_11D3_BACD_12345600558E__INCLUDED_)