SetNet.h
上传用户:kklily621
上传日期:2013-06-25
资源大小:252k
文件大小:2k
开发平台:

Visual C++

  1. #if !defined(AFX_SETNET_H__DA9BA92A_FC25_4867_A3DF_A3A2B0BDC50A__INCLUDED_)
  2. #define AFX_SETNET_H__DA9BA92A_FC25_4867_A3DF_A3A2B0BDC50A__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // SetNet.h : header file
  7. //
  8. //=============================================================================================
  9. // CSetNet dialog
  10. class CSetNet : public CPropertyPage
  11. {
  12. DECLARE_DYNCREATE(CSetNet)
  13. // Construction
  14. public:
  15. CSetNet();
  16. ~CSetNet();
  17. // Dialog Data
  18. //{{AFX_DATA(CSetNet)
  19. enum { IDD = IDD_SET_NET };
  20. CTreeCtrl m_TreeSetNet;
  21. CListCtrl m_ListSetNet;
  22. //}}AFX_DATA
  23. // Overrides
  24. // ClassWizard generate virtual function overrides
  25. //{{AFX_VIRTUAL(CSetNet)
  26. protected:
  27. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  28. //}}AFX_VIRTUAL
  29. // Implementation
  30. protected:
  31. // Generated message map functions
  32. //{{AFX_MSG(CSetNet)
  33. virtual BOOL OnInitDialog();
  34. afx_msg void OnSetNetButtonAdd();
  35. afx_msg void OnSelchangedSetNetTree(NMHDR* pNMHDR, LRESULT* pResult);
  36. afx_msg void OnItemchangedSetNetList(NMHDR* pNMHDR, LRESULT* pResult);
  37. afx_msg void OnSetNetButtonEdit();
  38. afx_msg void OnDblclkSetNetList(NMHDR* pNMHDR, LRESULT* pResult);
  39. afx_msg void OnSetNetButtonDelete();
  40. afx_msg void OnClickSetNetList(NMHDR* pNMHDR, LRESULT* pResult);
  41. //}}AFX_MSG
  42. DECLARE_MESSAGE_MAP()
  43. //---------------------------------------------------------------------------------------------
  44. //owner declare
  45. public:
  46. static void InitList (CListCtrl * mList);
  47. void InitDlgResource ();
  48. int NetTextToIndex (CString sNetText);
  49. int SelectTreeItem (CString sNetText);
  50. int SelectTreeItemOperate();
  51. int EnableButton (BOOL bEnable,BOOL bEnableEx = FALSE);
  52. int ListAddIP (void* mpAclIP,DWORD mCount);
  53. int ListAddOneIP (DWORD iIndex, void* mpAclIP, BOOL isSelected = FALSE);
  54. public:
  55. int iTreeIndex;
  56. int iListIndex;
  57. CString m_TreeText;
  58. };
  59. //{{AFX_INSERT_LOCATION}}
  60. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  61. #endif // !defined(AFX_SETNET_H__DA9BA92A_FC25_4867_A3DF_A3A2B0BDC50A__INCLUDED_)