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.

67 lines
1.3 KiB

  1. /*++
  2. Copyright (C) 1997-2001 Microsoft Corporation
  3. Module Name:
  4. Abstract:
  5. History:
  6. --*/
  7. // DelDlg.cpp : implementation file
  8. //
  9. #include "stdafx.h"
  10. #include "wmitest.h"
  11. #include "DelDlg.h"
  12. #ifdef _DEBUG
  13. #define new DEBUG_NEW
  14. #undef THIS_FILE
  15. static char THIS_FILE[] = __FILE__;
  16. #endif
  17. /////////////////////////////////////////////////////////////////////////////
  18. // CDelDlg dialog
  19. CDelDlg::CDelDlg(CWnd* pParent /*=NULL*/)
  20. : CDialog(CDelDlg::IDD, pParent),
  21. m_bDelFromWMI(TRUE)
  22. {
  23. //{{AFX_DATA_INIT(CDelDlg)
  24. // NOTE: the ClassWizard will add member initialization here
  25. //}}AFX_DATA_INIT
  26. }
  27. void CDelDlg::DoDataExchange(CDataExchange* pDX)
  28. {
  29. CDialog::DoDataExchange(pDX);
  30. //{{AFX_DATA_MAP(CDelDlg)
  31. // NOTE: the ClassWizard will add DDX and DDV calls here
  32. //}}AFX_DATA_MAP
  33. if (!pDX->m_bSaveAndValidate)
  34. {
  35. CheckDlgButton(
  36. m_bDelFromWMI ? IDC_DEL_FROM_WMI : IDC_DEL_FROM_TREE,
  37. TRUE);
  38. }
  39. else
  40. {
  41. m_bDelFromWMI = IsDlgButtonChecked(IDC_DEL_FROM_WMI);
  42. }
  43. }
  44. BEGIN_MESSAGE_MAP(CDelDlg, CDialog)
  45. //{{AFX_MSG_MAP(CDelDlg)
  46. // NOTE: the ClassWizard will add message map macros here
  47. //}}AFX_MSG_MAP
  48. END_MESSAGE_MAP()
  49. /////////////////////////////////////////////////////////////////////////////
  50. // CDelDlg message handlers