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.5 KiB

  1. //***************************************************************************
  2. //
  3. // UPDATECFG.CPP
  4. //
  5. // Module: WMI Framework Instance provider
  6. //
  7. // Purpose: Defines class NlbConfigurationUpdate, used for
  8. // async update of NLB properties associated with a particular NIC.
  9. //
  10. // Copyright (c)2001 Microsoft Corporation, All Rights Reserved
  11. //
  12. // History:
  13. //
  14. // 04/05/01 JosephJ Created
  15. //
  16. //***************************************************************************
  17. #include "disclaimer.h"
  18. DisclaimerDialog::DisclaimerDialog(CWnd* parent )
  19. :
  20. CDialog( IDD, parent )
  21. {}
  22. void
  23. DisclaimerDialog::DoDataExchange( CDataExchange* pDX )
  24. {
  25. CDialog::DoDataExchange(pDX);
  26. // DDX_Control( pDX, IDC_DO_NOT_REMIND, dontRemindMe );
  27. DDX_Check(pDX, IDC_DO_NOT_REMIND, dontRemindMe);
  28. }
  29. BOOL
  30. DisclaimerDialog::OnInitDialog()
  31. {
  32. BOOL fRet = CDialog::OnInitDialog();
  33. dontRemindMe = 0;
  34. return fRet;
  35. }
  36. void DisclaimerDialog::OnOK()
  37. {
  38. //
  39. // Get the current check status ....
  40. //
  41. #if 0
  42. dontRemindMe = IsDlgButtonChecked(IDC_DO_NOT_REMIND);
  43. if (dontRemindMe)
  44. {
  45. ::MessageBox(
  46. NULL,
  47. L"DO NOT REMIND", // Contents
  48. L"Reminder Hint", // caption
  49. MB_ICONSTOP | MB_OK );
  50. }
  51. else
  52. {
  53. ::MessageBox(
  54. NULL,
  55. L"REMIND", // Contents
  56. L"Reminder Hint", // caption
  57. MB_ICONSTOP | MB_OK );
  58. }
  59. #endif // 0
  60. CDialog::OnOK();
  61. }