TarEdit.h
资源名称:hp_snmp3.zip [点击查看]
上传用户:czjinwang
上传日期:2007-01-12
资源大小:2484k
文件大小:2k
源码类别:
SNMP编程
开发平台:
Visual C++
- /*============================================================================
- Copyright (c) 1996
- Hewlett-Packard Company
- ATTENTION: USE OF THIS SOFTWARE IS SUBJECT TO THE FOLLOWING TERMS.
- Permission to use, copy, modify, distribute and/or sell this software
- and/or its documentation is hereby granted without fee. User agrees
- to display the above copyright notice and this license notice in all
- copies of the software and any documentation of the software. User
- agrees to assume all liability for the use of the software; Hewlett-Packard
- makes no representations about the suitability of this software for any
- purpose. It is provided "AS-IS without warranty of any kind,either express
- or implied. User hereby grants a royalty-free license to any and all
- derivatives based upon this software code base.
- =============================================================================*/
- // TarEdit.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // TarEdit dialog
- class TarEdit : public CPropertyPage
- {
- DECLARE_DYNCREATE(TarEdit)
- // Construction
- public:
- TarEdit();
- ~TarEdit();
- // Dialog Data
- //{{AFX_DATA(TarEdit)
- enum { IDD = IDD_TAREDIT };
- CString m_address;
- CString m_alias;
- CString m_read_community;
- CString m_write_community;
- UINT m_timeout;
- UINT m_retries;
- //}}AFX_DATA
- // Overrides
- // ClassWizard generate virtual function overrides
- //{{AFX_VIRTUAL(TarEdit)
- public:
- virtual void OnCancel();
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- void load_target_list();
- void toggle_controls( int state);
- // Generated message map functions
- //{{AFX_MSG(TarEdit)
- virtual BOOL OnInitDialog();
- afx_msg void OnButtonNew();
- afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
- afx_msg void OnButtonSave();
- afx_msg void OnButtonEdit();
- afx_msg void OnDblclkListTargets();
- afx_msg void OnButtonDelete();
- afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };