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.

81 lines
1.6 KiB

  1. /*++
  2. Copyright (C) 1997-2001 Microsoft Corporation
  3. Module Name:
  4. Abstract:
  5. History:
  6. --*/
  7. // ArrayItemDlg.cpp : implementation file
  8. //
  9. #include "stdafx.h"
  10. #include "wmitest.h"
  11. #include "ArrayItemDlg.h"
  12. #include "PropUtil.h"
  13. #ifdef _DEBUG
  14. #define new DEBUG_NEW
  15. #undef THIS_FILE
  16. static char THIS_FILE[] = __FILE__;
  17. #endif
  18. /////////////////////////////////////////////////////////////////////////////
  19. // CArrayItemDlg dialog
  20. CArrayItemDlg::CArrayItemDlg(CWnd* pParent /*=NULL*/)
  21. : CDialog(CArrayItemDlg::IDD, pParent)
  22. {
  23. //{{AFX_DATA_INIT(CArrayItemDlg)
  24. // NOTE: the ClassWizard will add member initialization here
  25. //}}AFX_DATA_INIT
  26. }
  27. void CArrayItemDlg::DoDataExchange(CDataExchange* pDX)
  28. {
  29. CDialog::DoDataExchange(pDX);
  30. //{{AFX_DATA_MAP(CArrayItemDlg)
  31. //}}AFX_DATA_MAP
  32. if (!pDX->m_bSaveAndValidate)
  33. m_spropUtil.Init(this);
  34. m_spropUtil.DoDataExchange(pDX);
  35. }
  36. BEGIN_MESSAGE_MAP(CArrayItemDlg, CDialog)
  37. //{{AFX_MSG_MAP(CArrayItemDlg)
  38. ON_BN_CLICKED(IDC_EDIT_OBJ, OnEditEmbedded)
  39. ON_BN_CLICKED(IDC_CLEAR, OnClearEmbedded)
  40. //}}AFX_MSG_MAP
  41. END_MESSAGE_MAP()
  42. /////////////////////////////////////////////////////////////////////////////
  43. // CArrayItemDlg message handlers
  44. BOOL CArrayItemDlg::OnInitDialog()
  45. {
  46. CDialog::OnInitDialog();
  47. m_spropUtil.OnInitDialog();
  48. m_spropUtil.SetType(m_spropUtil.m_prop.GetRawCIMType());
  49. return TRUE; // return TRUE unless you set the focus to a control
  50. // EXCEPTION: OCX Property Pages should return FALSE
  51. }
  52. void CArrayItemDlg::OnEditEmbedded()
  53. {
  54. m_spropUtil.OnEditEmbedded();
  55. }
  56. void CArrayItemDlg::OnClearEmbedded()
  57. {
  58. m_spropUtil.OnClearEmbedded();
  59. }