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.

88 lines
1.8 KiB

  1. /*++
  2. Copyright (C) 1997-2001 Microsoft Corporation
  3. Module Name:
  4. Abstract:
  5. History:
  6. --*/
  7. #if !defined(AFX_ARRAYITEMDLG_H__EA4C9BEB_9F03_4F6D_8A00_484ABB2E3931__INCLUDED_)
  8. #define AFX_ARRAYITEMDLG_H__EA4C9BEB_9F03_4F6D_8A00_484ABB2E3931__INCLUDED_
  9. #if _MSC_VER > 1000
  10. #pragma once
  11. #endif // _MSC_VER > 1000
  12. // ArrayItemDlg.h : header file
  13. //
  14. #include "PropUtil.h"
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CArrayItemDlg dialog
  17. class CArrayItemDlg : public CDialog
  18. {
  19. // Construction
  20. public:
  21. CArrayItemDlg(CWnd* pParent = NULL); // standard constructor
  22. // Dialog Data
  23. //{{AFX_DATA(CArrayItemDlg)
  24. enum { IDD = IDD_ARRAY_ITEM };
  25. CComboBox m_ctlListValues;
  26. CListBox m_ctlBitmaskValues;
  27. //}}AFX_DATA
  28. CSinglePropUtil m_spropUtil;
  29. //BOOL m_bNewProperty;
  30. //CPropInfo m_prop;
  31. //VARIANT *m_pVar;
  32. //BOOL m_bTranslate;
  33. void SetType(CIMTYPE type);
  34. void ShowControls(BOOL bShow);
  35. // Overrides
  36. // ClassWizard generated virtual function overrides
  37. //{{AFX_VIRTUAL(CArrayItemDlg)
  38. protected:
  39. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  40. //}}AFX_VIRTUAL
  41. // Implementation
  42. protected:
  43. enum VALUE_TYPE
  44. {
  45. TYPE_EDIT,
  46. TYPE_CHECKLISTBOX,
  47. TYPE_DROPDOWN,
  48. TYPE_DROPDOWNLIST,
  49. };
  50. CWnd *m_pWnd;
  51. VALUE_TYPE m_type;
  52. DWORD m_dwScalarID;
  53. IUnknownPtr m_pObjValue;
  54. void InitTypeCombo();
  55. CIMTYPE GetCurrentType();
  56. void InitControls();
  57. // Generated message map functions
  58. //{{AFX_MSG(CArrayItemDlg)
  59. virtual BOOL OnInitDialog();
  60. afx_msg void OnEditEmbedded();
  61. afx_msg void OnClearEmbedded();
  62. //}}AFX_MSG
  63. DECLARE_MESSAGE_MAP()
  64. };
  65. //{{AFX_INSERT_LOCATION}}
  66. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  67. #endif // !defined(AFX_ARRAYITEMDLG_H__EA4C9BEB_9F03_4F6D_8A00_484ABB2E3931__INCLUDED_)