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.

72 lines
1.6 KiB

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