home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 23 / IOPROG_23.ISO / SOFT / NETTOOLS.ZIP / MainFrm.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-12-30  |  2.2 KB  |  83 lines

  1. // MainFrm.h : interface of the CMainFrame class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. #include <snmp.h>
  6. #include "pingparmlist.h"
  7. #include "inetthreadparms.h"
  8. #include "PingThread.h"
  9. #include "inetthread.h"
  10.  
  11. class CMainFrame : public CFrameWnd
  12. {
  13. public: // create from serialization only
  14.     CMainFrame();
  15.     DECLARE_DYNCREATE(CMainFrame)
  16.  
  17. // Attributes
  18. public:
  19.     
  20.     CPingThreadParmList m_PingThreadInfo;
  21.     CInetThreadParms m_InetThreadInfo;
  22.     CPingThread* m_pPingWorkerThread;
  23.     CInetThread* m_pInetWorkerThread;
  24.     
  25. // Operations
  26. public:
  27.  
  28. // Overrides
  29.     // ClassWizard generated virtual function overrides
  30.     //{{AFX_VIRTUAL(CMainFrame)
  31.     public:
  32.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  33.     virtual void RecalcLayout(BOOL bNotify = TRUE);
  34.     //}}AFX_VIRTUAL
  35.  
  36. // Implementation
  37. public:
  38.     virtual ~CMainFrame();
  39. #ifdef _DEBUG
  40.     virtual void AssertValid() const;
  41.     virtual void Dump(CDumpContext& dc) const;
  42. #endif
  43.  
  44. protected:  // control bar embedded members
  45.     CString m_save_hostname;
  46.     CStatusBar  m_wndStatusBar;
  47.     CToolBar    m_wndToolBar;
  48.     CListBox    m_wndListBox;
  49.  
  50. // Generated message map functions
  51. protected:
  52.     //{{AFX_MSG(CMainFrame)
  53.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  54.     afx_msg void OnCommandsPing();
  55.     afx_msg void OnCommandsNetstat();
  56.     afx_msg void OnFileNew();
  57.     afx_msg void OnUpdateCommandsPing(CCmdUI* pCmdUI);
  58.     afx_msg void OnCommandsStopPing();
  59.     afx_msg void OnUpdateCommandsStopPing(CCmdUI* pCmdUI);
  60.     afx_msg void OnUpdateCommandsNetstat(CCmdUI* pCmdUI);
  61.     afx_msg void OnUpdateCommandsStopstat(CCmdUI* pCmdUI);
  62.     afx_msg void OnCommandsStopstat();
  63.     afx_msg void OnClose();
  64.     //}}AFX_MSG
  65.     LRESULT OnPingDone(WPARAM wParam,LPARAM lParam);
  66.     LRESULT OnPingPrint(WPARAM wParam,LPARAM lParam);
  67.     LRESULT OnInetDone(WPARAM wParam,LPARAM lParam);
  68.     LRESULT OnInetPrint(WPARAM wParam,LPARAM lParam);
  69.     LRESULT OnInetTabs(WPARAM wParam,LPARAM lParam);
  70.     DECLARE_MESSAGE_MAP()
  71.  
  72.  
  73.  
  74. private:
  75. //    CCriticalSection m_CritWinLb;
  76.     BOOL m_Ping_ButtEnabled;
  77.     BOOL m_PingStop_ButtEnabled;
  78.     BOOL m_Inet_ButtEnabled;
  79.     BOOL m_InetStop_ButtEnabled;
  80. };
  81.  
  82. /////////////////////////////////////////////////////////////////////////////
  83.