Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123 lines
3.1 KiB

  1. // AdvDlg.h : header file
  2. //
  3. #define SZ_MB_DIRGLOBALS_OBJECT "/LM/W3SVC/1//"
  4. #define SZ_MB_ROOTDIR_OBJECT "/LM/W3SVC/1//"
  5. /////////////////////////////////////////////////////////////////////////////
  6. // CVirtDir object - for maintaining the list
  7. class CVirtDir : public CObject
  8. {
  9. public:
  10. CVirtDir(BOOL bRoot = FALSE);
  11. // interfaces with the metabase
  12. BOOL FSaveToMetabase();
  13. BOOL FRemoveFromMetabase( BOOL fSaveMB = TRUE );
  14. // initialize the class as a new class - involves asking the user to pick a dir
  15. BOOL FInitAsNew();
  16. // get the appropriate error string for the list
  17. void GetErrorStr( CString &sz );
  18. BOOL Edit();
  19. // public members
  20. CString m_szPath;
  21. CString m_szAlias;
  22. CString m_szMetaAlias;
  23. BOOL m_fIsRoot;
  24. };
  25. /////////////////////////////////////////////////////////////////////////////
  26. // CAdvancedDlg dialog
  27. class CAdvancedDlg : public CDialog
  28. {
  29. // Construction
  30. public:
  31. CAdvancedDlg(CWnd* pParent = NULL); // standard constructor
  32. virtual BOOL OnInitDialog();
  33. void RefreshGlobals();
  34. void RefreshList();
  35. // Dialog Data
  36. //{{AFX_DATA(CAdvancedDlg)
  37. enum { IDD = IDD_ADVANCED };
  38. CStatic m_cstatic_default;
  39. CEdit m_cedit_default;
  40. CButton m_cbutton_change;
  41. CListCtrl m_clistctrl_list;
  42. CButton m_cbutton_remove;
  43. CString m_sz_defaultdoc;
  44. BOOL m_f_browsingallowed;
  45. BOOL m_f_enabledefault;
  46. //}}AFX_DATA
  47. // Overrides
  48. // ClassWizard generated virtual function overrides
  49. //{{AFX_VIRTUAL(CAdvancedDlg)
  50. protected:
  51. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  52. //}}AFX_VIRTUAL
  53. // Implementation
  54. protected:
  55. // Generated message map functions
  56. //{{AFX_MSG(CAdvancedDlg)
  57. afx_msg void OnItemchangedList(NMHDR* pNMHDR, LRESULT* pResult);
  58. afx_msg void OnAdd();
  59. afx_msg void OnChange();
  60. afx_msg void OnRemove();
  61. afx_msg void OnEnabledefault();
  62. afx_msg void OnDblclkList(NMHDR* pNMHDR, LRESULT* pResult);
  63. afx_msg void OnRefresh();
  64. afx_msg void OnBrowsingAllowed();
  65. afx_msg void OnKillfocusDefaultDoc();
  66. virtual void OnCancel();
  67. //}}AFX_MSG
  68. DECLARE_MESSAGE_MAP()
  69. // more initialization methods
  70. BOOL FInitGlobalParameters();
  71. BOOL FInitList();
  72. BOOL FillList();
  73. void AddToDisplayList( CVirtDir* pDir );
  74. // refreshing utilities
  75. void EmptyOutList();
  76. // apply utilities
  77. void ApplyGlobalParameters();
  78. // void ApplyList();
  79. // utilities
  80. void EnableDependantButtons();
  81. // void SetModified( BOOL bChanged = TRUE ) { m_modified = bChanged; EnableDependantButtons(); }
  82. // DWORD IDirInModList( CVirtDir* pDir );
  83. // DWORD IDirInNewList( CVirtDir* pDir );
  84. // members
  85. // BOOL m_modified;
  86. CImageList m_imageList;
  87. CString m_szSaved;
  88. BOOL m_fApplyingGlobals;
  89. // edited dirs already saved in the metabase
  90. // CTypedPtrArray<CObArray, CVirtDir*> m_ModifiedList;
  91. // new dirs that are to be added
  92. // CTypedPtrArray<CObArray, CVirtDir*> m_NewList;
  93. // dirs that are to be deleted
  94. // CTypedPtrArray<CObArray, CVirtDir*> m_DeleteList;
  95. };