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
2.3 KiB

  1. //Copyright (c) 1998 - 1999 Microsoft Corporation
  2. /*++
  3. Module Name:
  4. KPProp.h
  5. Abstract:
  6. This Module contains the implementation of CKeyPackProperty class
  7. (Property sheet for KeyPacks)
  8. Author:
  9. Arathi Kundapur (v-akunda) 11-Feb-1998
  10. Revision History:
  11. --*/
  12. #include "stdafx.h"
  13. #include "LicMgr.h"
  14. #include "KPProp.h"
  15. #ifdef _DEBUG
  16. #define new DEBUG_NEW
  17. #undef THIS_FILE
  18. static char THIS_FILE[] = __FILE__;
  19. #endif
  20. /////////////////////////////////////////////////////////////////////////////
  21. // CKeyPackProperty property page
  22. IMPLEMENT_DYNCREATE(CKeyPackProperty, CPropertyPage)
  23. CKeyPackProperty::CKeyPackProperty() : CPropertyPage(CKeyPackProperty::IDD)
  24. {
  25. //{{AFX_DATA_INIT(CKeyPackProperty)
  26. m_TotalLicenses = _T("");
  27. m_ProductName = _T("");
  28. m_ProductId = _T("");
  29. m_MinorVersion = _T("");
  30. m_MajorVersion = _T("");
  31. m_KeypackStatus = _T("");
  32. m_KeyPackId = _T("");
  33. m_ExpirationDate = _T("");
  34. m_ChannelOfPurchase = _T("");
  35. m_BeginSerial = _T("");
  36. m_AvailableLicenses = _T("");
  37. m_ActivationDate = _T("");
  38. m_KeyPackType = _T("");
  39. //}}AFX_DATA_INIT
  40. }
  41. CKeyPackProperty::~CKeyPackProperty()
  42. {
  43. }
  44. void CKeyPackProperty::DoDataExchange(CDataExchange* pDX)
  45. {
  46. CPropertyPage::DoDataExchange(pDX);
  47. //{{AFX_DATA_MAP(CKeyPackProperty)
  48. DDX_Text(pDX, IDC_TOTAL_LICENSES, m_TotalLicenses);
  49. DDX_Text(pDX, IDC_PRODUCT_NAME, m_ProductName);
  50. DDX_Text(pDX, IDC_PRODUCT_ID, m_ProductId);
  51. DDX_Text(pDX, IDC_MINOR_VERSION, m_MinorVersion);
  52. DDX_Text(pDX, IDC_MAJOR_VERSION, m_MajorVersion);
  53. DDX_Text(pDX, IDC_KEYPACK_STATUS, m_KeypackStatus);
  54. DDX_Text(pDX, IDC_KEYPACK_ID, m_KeyPackId);
  55. DDX_Text(pDX, IDC_EXPIRATION_DATE, m_ExpirationDate);
  56. DDX_Text(pDX, IDC_CHANNEL_OF_PURCHASE, m_ChannelOfPurchase);
  57. DDX_Text(pDX, IDC_BEGIN_SERIAL, m_BeginSerial);
  58. DDX_Text(pDX, IDC_AVAILABLE_LICENSES, m_AvailableLicenses);
  59. DDX_Text(pDX, IDC_ACTIVATION_DATE, m_ActivationDate);
  60. DDX_Text(pDX, IDC_KEYPACK_TYPE, m_KeyPackType);
  61. //}}AFX_DATA_MAP
  62. }
  63. BEGIN_MESSAGE_MAP(CKeyPackProperty, CPropertyPage)
  64. //{{AFX_MSG_MAP(CKeyPackProperty)
  65. // NOTE: the ClassWizard will add message map macros here
  66. //}}AFX_MSG_MAP
  67. END_MESSAGE_MAP()
  68. /////////////////////////////////////////////////////////////////////////////
  69. // CKeyPackProperty message handlers