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

Visual C++

  1. #if !defined(AFX_ACL_H__DFE5E4FE_2B05_4F8C_B2AB_070981556624__INCLUDED_)
  2. #define AFX_ACL_H__DFE5E4FE_2B05_4F8C_B2AB_070981556624__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // Acl.h : header file
  7. //
  8. //=============================================================================================
  9. // CAcl dialog
  10. class CAcl : public CPropertyPage
  11. {
  12. DECLARE_DYNCREATE(CAcl)
  13. // Construction
  14. public:
  15. CAcl();
  16. ~CAcl();
  17. // Dialog Data
  18. //{{AFX_DATA(CAcl)
  19. enum { IDD = IDD_ACL };
  20. static CListCtrl m_ListAcl;
  21. CButton m_RadioPass;
  22. CButton m_RadioQuery;
  23. CButton m_RadioDeny;
  24. //}}AFX_DATA
  25. // Overrides
  26. // ClassWizard generate virtual function overrides
  27. //{{AFX_VIRTUAL(CAcl)
  28. protected:
  29. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  30. //}}AFX_VIRTUAL
  31. // Implementation
  32. protected:
  33. // Generated message map functions
  34. //{{AFX_MSG(CAcl)
  35. virtual BOOL OnInitDialog();
  36. afx_msg void OnAclButtonAdd();
  37. afx_msg void OnAclButtonEdit();
  38. afx_msg void OnItemchangedAclList(NMHDR* pNMHDR, LRESULT* pResult);
  39. afx_msg void OnDblclkAclList(NMHDR* pNMHDR, LRESULT* pResult);
  40. afx_msg void OnClickAclList(NMHDR* pNMHDR, LRESULT* pResult);
  41. afx_msg void OnAclButtonDelete();
  42. afx_msg void OnAclRadioDeny();
  43. afx_msg void OnAclRadioPass();
  44. afx_msg void OnAclRadioQuery();
  45. //}}AFX_MSG
  46. DECLARE_MESSAGE_MAP()
  47. //---------------------------------------------------------------------------------------------
  48. //owner declare
  49. public:
  50. static int ListAddOne(
  51. IN void* mpAcl,
  52. IN BOOL isSelected = FALSE,
  53. IN BOOL isEdit = FALSE,
  54. IN int EditIndex = 0
  55. );
  56. void InitDlgResource ();
  57. void Refresh ();
  58. BOOL SetType (int type, BOOL bit4, BOOL bit5);
  59. void EnableButton (BOOL bEnable);
  60. public:
  61. static void InitList (CListCtrl * mList);
  62. static int ShowDlg ();
  63. static UINT EnableMenu (UINT bEnable);
  64. static int InitAddAcl (TCHAR* sPathName, BOOL EnableComboApplication = TRUE);
  65. static BOOL WINAPI AddAclQuery (TCHAR* sPathName, BOOL EnableComboApplication = FALSE);
  66. public:
  67. int m_iListIndex;
  68. int m_iType;
  69. };
  70. //{{AFX_INSERT_LOCATION}}
  71. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  72. #endif // !defined(AFX_ACL_H__DFE5E4FE_2B05_4F8C_B2AB_070981556624__INCLUDED_)