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.

76 lines
2.1 KiB

  1. #if !defined(AFX_ACTIONASSOCIATIONPAGE_H__9136B32C_5C9B_11D3_BE49_0000F87A3912__INCLUDED_)
  2. #define AFX_ACTIONASSOCIATIONPAGE_H__9136B32C_5C9B_11D3_BE49_0000F87A3912__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // ActionAssociationPage.h : header file
  7. //
  8. #include "HMPropertyPage.h"
  9. #include "WbemClassObject.h"
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CActionAssociationPage dialog
  12. class CActionAssociationPage : public CHMPropertyPage
  13. {
  14. DECLARE_DYNCREATE(CActionAssociationPage)
  15. // Construction
  16. public:
  17. CActionAssociationPage();
  18. ~CActionAssociationPage();
  19. // User Interface Attributes
  20. protected:
  21. HBITMAP m_hPropertiesBitmap;
  22. HBITMAP m_hNewBitmap;
  23. HBITMAP m_hDeleteBitmap;
  24. CToolTipCtrl m_ToolTip;
  25. // Helpers
  26. protected:
  27. CWbemClassObject* GetAssociatedActions();
  28. CString GetConditionString(const CString& sGuid);
  29. CWbemClassObject* GetA2CAssociation(const CString& sActionConfigGuid);
  30. CWbemClassObject* GetC2AAssociation(const CString& sConfigGuid);
  31. // Dialog Data
  32. //{{AFX_DATA(CActionAssociationPage)
  33. enum { IDD = IDD_ACTION_ASSOCIATION };
  34. CListCtrl m_ActionsList;
  35. CButton m_PropertiesButton;
  36. CButton m_NewButton;
  37. CButton m_DeleteButton;
  38. //}}AFX_DATA
  39. // Overrides
  40. // ClassWizard generate virtual function overrides
  41. //{{AFX_VIRTUAL(CActionAssociationPage)
  42. protected:
  43. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  44. virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
  45. //}}AFX_VIRTUAL
  46. // Implementation
  47. protected:
  48. // Generated message map functions
  49. //{{AFX_MSG(CActionAssociationPage)
  50. virtual BOOL OnInitDialog();
  51. afx_msg void OnDestroy();
  52. afx_msg void OnClickListActions(NMHDR* pNMHDR, LRESULT* pResult);
  53. afx_msg void OnButtonProperties();
  54. afx_msg void OnButtonNew();
  55. afx_msg void OnButtonDelete();
  56. afx_msg void OnDblclkListActions(NMHDR* pNMHDR, LRESULT* pResult);
  57. //}}AFX_MSG
  58. DECLARE_MESSAGE_MAP()
  59. };
  60. //{{AFX_INSERT_LOCATION}}
  61. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  62. #endif // !defined(AFX_ACTIONASSOCIATIONPAGE_H__9136B32C_5C9B_11D3_BE49_0000F87A3912__INCLUDED_)