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

  1. //Copyright (c) 1998 - 1999 Microsoft Corporation
  2. /*++
  3. Module Name:
  4. LicAgrmt.cpp
  5. Abstract:
  6. This Module contains the implementation of the CLicAgreement Dialog class
  7. (Dialog box used for displaying License Agreement)
  8. Author:
  9. Arathi Kundapur (v-akunda) 17-Feb-1998
  10. Revision History:
  11. --*/
  12. #include "stdafx.h"
  13. #include "licmgr.h"
  14. #include "LicAgrmt.h"
  15. #ifdef _DEBUG
  16. #define new DEBUG_NEW
  17. #undef THIS_FILE
  18. static char THIS_FILE[] = __FILE__;
  19. #endif
  20. /////////////////////////////////////////////////////////////////////////////
  21. // CLicAgreement dialog
  22. CLicAgreement::CLicAgreement(CWnd* pParent /*=NULL*/)
  23. : CDialog(CLicAgreement::IDD, pParent)
  24. {
  25. //{{AFX_DATA_INIT(CLicAgreement)
  26. m_License = _T("");
  27. //}}AFX_DATA_INIT
  28. }
  29. void CLicAgreement::DoDataExchange(CDataExchange* pDX)
  30. {
  31. CDialog::DoDataExchange(pDX);
  32. //{{AFX_DATA_MAP(CLicAgreement)
  33. DDX_Text(pDX, IDC_LICENSE, m_License);
  34. //}}AFX_DATA_MAP
  35. }
  36. BEGIN_MESSAGE_MAP(CLicAgreement, CDialog)
  37. //{{AFX_MSG_MAP(CLicAgreement)
  38. ON_BN_CLICKED(IDC_AGREE, OnAgree)
  39. //}}AFX_MSG_MAP
  40. END_MESSAGE_MAP()
  41. /////////////////////////////////////////////////////////////////////////////
  42. // CLicAgreement message handlers
  43. void CLicAgreement::OnAgree()
  44. {
  45. // TODO: Add your control notification handler code here
  46. if(IsDlgButtonChecked(IDC_AGREE))
  47. GetDlgItem(IDOK)->EnableWindow();
  48. else
  49. GetDlgItem(IDOK)->EnableWindow(FALSE);
  50. }