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.

104 lines
2.6 KiB

  1. #if !defined(AFX_LOGADVCPG_H__1821FE96_9846_11D1_8B99_080009DCC2FA__INCLUDED_)
  2. #define AFX_LOGADVCPG_H__1821FE96_9846_11D1_8B99_080009DCC2FA__INCLUDED_
  3. #if _MSC_VER >= 1000
  4. #pragma once
  5. #endif // _MSC_VER >= 1000
  6. // LogAdvPg.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CLogAdvanced dialog
  10. class CLogAdvanced : public CPropertyPage
  11. {
  12. DECLARE_DYNCREATE(CLogAdvanced)
  13. // Construction
  14. public:
  15. CLogAdvanced();
  16. typedef struct _CONFIG_INFORMATION_
  17. {
  18. DWORD dwPropertyID;
  19. DWORD dwPropertyMask;
  20. bool fItemModified;
  21. int iOrder;
  22. } CONFIG_INFORMATION, *PCONFIG_INFORMATION;
  23. //
  24. // metabase target
  25. //
  26. CString m_szServer;
  27. CString m_szMeta;
  28. CString m_szServiceName;
  29. IMSAdminBase* m_pMB;
  30. // Dialog Data
  31. //{{AFX_DATA(CLogAdvanced)
  32. enum { IDD = IDD_LOG_ADVANCED };
  33. CTreeCtrl m_wndTreeCtrl;
  34. //}}AFX_DATA
  35. // Overrides
  36. // ClassWizard generate virtual function overrides
  37. //{{AFX_VIRTUAL(CLogAdvanced)
  38. public:
  39. virtual BOOL OnApply();
  40. protected:
  41. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  42. //}}AFX_VIRTUAL
  43. // Implementation
  44. protected:
  45. // Generated message map functions
  46. //{{AFX_MSG(CLogAdvanced)
  47. virtual BOOL OnInitDialog();
  48. afx_msg void OnClickTree(NMHDR* pNMHDR, LRESULT* pResult);
  49. afx_msg void OnKeydownTree(NMHDR* pNMHDR, LRESULT* pResult);
  50. afx_msg void OnDestroy();
  51. //}}AFX_MSG
  52. DECLARE_MESSAGE_MAP()
  53. private:
  54. CImageList m_cImageList;
  55. bool m_fTreeModified;
  56. int m_cModifiedProperties;
  57. DWORD *m_pModifiedPropIDs[2];
  58. void CreateTreeFromMB();
  59. void CreateSubTree(CWrapMetaBase& mbWrap, LPTSTR szPath, HTREEITEM hTreeRoot);
  60. void ProcessClick( HTREEITEM htiItemClicked);
  61. void ProcessProperties(bool fSave);
  62. void SetSubTreeProperties(CWrapMetaBase * pMBWrap, HTREEITEM hTreeRoot, BOOL fParentState, BOOL fInitialize);
  63. void SaveSubTreeProperties(CWrapMetaBase& mbWrap, HTREEITEM hTreeRoot);
  64. void InsertModifiedFieldInArray(DWORD dwPropID, DWORD dwPropValue);
  65. bool GetModifiedFieldFromArray(DWORD dwPropID, DWORD * pdwPropValue);
  66. bool IsPresentServiceSupported(LPTSTR szSupportedServices);
  67. void DeleteSubTreeConfig(HTREEITEM hTreeRoot);
  68. void DoHelp();
  69. int LocalizeUIString(LPCTSTR szOrig, LPTSTR szLocalized);
  70. std::map<CString, int> m_mapLogUI;
  71. std::map<int, int> m_mapLogUIOrder;
  72. };
  73. //{{AFX_INSERT_LOCATION}}
  74. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  75. #endif // !defined(AFX_LOGADVCPG_H__1821FE96_9846_11D1_8B99_080009DCC2FA__INCLUDED_)