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. //Copyright (c) 1998 - 1999 Microsoft Corporation
  2. /*++
  3. Module Name:
  4. Custprop.cpp
  5. Abstract:
  6. This Module contains the implementation of CCustomPropertySheet class
  7. (Base class for the property sheets)
  8. Author:
  9. Arathi Kundapur (v-akunda) 11-Feb-1998
  10. Revision History:
  11. --*/
  12. #include "stdafx.h"
  13. #include "LicMgr.h"
  14. #include "CustProp.h"
  15. #ifdef _DEBUG
  16. #define new DEBUG_NEW
  17. #undef THIS_FILE
  18. static char THIS_FILE[] = __FILE__;
  19. #endif
  20. /////////////////////////////////////////////////////////////////////////////
  21. // CCustomPropertySheet
  22. IMPLEMENT_DYNAMIC(CCustomPropertySheet, CPropertySheet)
  23. CCustomPropertySheet::CCustomPropertySheet(UINT nIDCaption, CWnd* pParentWnd, UINT iSelectPage)
  24. :CPropertySheet(nIDCaption, pParentWnd, iSelectPage)
  25. {
  26. }
  27. CCustomPropertySheet::CCustomPropertySheet(LPCTSTR pszCaption, CWnd* pParentWnd, UINT iSelectPage)
  28. :CPropertySheet(pszCaption, pParentWnd, iSelectPage)
  29. {
  30. }
  31. CCustomPropertySheet::~CCustomPropertySheet()
  32. {
  33. }
  34. BEGIN_MESSAGE_MAP(CCustomPropertySheet, CPropertySheet)
  35. //{{AFX_MSG_MAP(CCustomPropertySheet)
  36. // NOTE - the ClassWizard will add and remove mapping macros here.
  37. //}}AFX_MSG_MAP
  38. END_MESSAGE_MAP()
  39. /////////////////////////////////////////////////////////////////////////////
  40. // CCustomPropertySheet message handlers
  41. BOOL CCustomPropertySheet::OnInitDialog()
  42. {
  43. BOOL bResult = CPropertySheet::OnInitDialog();
  44. // TODO: Add your specialized code here
  45. //Hide the Cancel button
  46. GetDlgItem(IDCANCEL)->ShowWindow(SW_HIDE);
  47. return bResult;
  48. }