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.

80 lines
1.8 KiB

  1. /*++
  2. Copyright (C) 1997-2001 Microsoft Corporation
  3. Module Name:
  4. Abstract:
  5. History:
  6. --*/
  7. #if !defined(AFX_PROPSPG_H__017BA77D_2EEE_406B_B751_13E29D83BC9A__INCLUDED_)
  8. #define AFX_PROPSPG_H__017BA77D_2EEE_406B_B751_13E29D83BC9A__INCLUDED_
  9. #if _MSC_VER > 1000
  10. #pragma once
  11. #endif // _MSC_VER > 1000
  12. // PropsPg.h : header file
  13. //
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CPropsPg dialog
  16. class CPropsPg : public CPropertyPage
  17. {
  18. DECLARE_DYNCREATE(CPropsPg)
  19. // Construction
  20. public:
  21. CPropsPg();
  22. ~CPropsPg();
  23. // Dialog Data
  24. //{{AFX_DATA(CPropsPg)
  25. enum { IDD = IDD_PROPS };
  26. CListCtrl m_ctlProps;
  27. //}}AFX_DATA
  28. IWbemServices *m_pNamespace;
  29. CObjInfo *m_pObj;
  30. // Overrides
  31. // ClassWizard generate virtual function overrides
  32. //{{AFX_VIRTUAL(CPropsPg)
  33. protected:
  34. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  35. //}}AFX_VIRTUAL
  36. // Implementation
  37. protected:
  38. BOOL m_bShowSystemProperties,
  39. m_bShowInheritedProperties,
  40. m_bTranslateValues;
  41. void InitListCtrl();
  42. void LoadProps();
  43. void UpdateButtons();
  44. void AddProp(LPCTSTR szName, VARIANT *pVar, CIMTYPE type, long lFlavor);
  45. int GetSelectedItem();
  46. // Generated message map functions
  47. //{{AFX_MSG(CPropsPg)
  48. afx_msg void OnAdd();
  49. afx_msg void OnEdit();
  50. afx_msg void OnDelete();
  51. afx_msg void OnDblclkProps(NMHDR* pNMHDR, LRESULT* pResult);
  52. afx_msg void OnItemchangedProps(NMHDR* pNMHDR, LRESULT* pResult);
  53. virtual BOOL OnInitDialog();
  54. afx_msg void OnSystem();
  55. afx_msg void OnInherited();
  56. //}}AFX_MSG
  57. DECLARE_MESSAGE_MAP()
  58. };
  59. //{{AFX_INSERT_LOCATION}}
  60. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  61. #endif // !defined(AFX_PROPSPG_H__017BA77D_2EEE_406B_B751_13E29D83BC9A__INCLUDED_)