Leaked source code of windows server 2003
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.

82 lines
2.2 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997-2001.
  5. //
  6. // File: ACRSWlcm.cpp
  7. //
  8. // Contents:
  9. //
  10. //----------------------------------------------------------------------------
  11. #include "stdafx.h"
  12. #include "ACRSWLCM.H"
  13. #include "ACRSPSht.h"
  14. #ifdef _DEBUG
  15. #ifndef ALPHA
  16. #define new DEBUG_NEW
  17. #endif
  18. #undef THIS_FILE
  19. static char THIS_FILE[] = __FILE__;
  20. #endif
  21. /////////////////////////////////////////////////////////////////////////////
  22. // ACRSWizardWelcomePage property page
  23. //IMPLEMENT_DYNCREATE(ACRSWizardWelcomePage, CWizard97PropertyPage)
  24. ACRSWizardWelcomePage::ACRSWizardWelcomePage() : CWizard97PropertyPage(ACRSWizardWelcomePage::IDD)
  25. {
  26. //{{AFX_DATA_INIT(ACRSWizardWelcomePage)
  27. // NOTE: the ClassWizard will add member initialization here
  28. //}}AFX_DATA_INIT
  29. InitWizard97 (TRUE);
  30. }
  31. ACRSWizardWelcomePage::~ACRSWizardWelcomePage()
  32. {
  33. }
  34. void ACRSWizardWelcomePage::DoDataExchange(CDataExchange* pDX)
  35. {
  36. CWizard97PropertyPage::DoDataExchange(pDX);
  37. //{{AFX_DATA_MAP(ACRSWizardWelcomePage)
  38. DDX_Control(pDX, IDC_WIZARD_STATIC_BIG_BOLD1, m_staticBigBold);
  39. //}}AFX_DATA_MAP
  40. }
  41. BEGIN_MESSAGE_MAP(ACRSWizardWelcomePage, CWizard97PropertyPage)
  42. //{{AFX_MSG_MAP(ACRSWizardWelcomePage)
  43. //}}AFX_MSG_MAP
  44. END_MESSAGE_MAP()
  45. /////////////////////////////////////////////////////////////////////////////
  46. // ACRSWizardWelcomePage message handlers
  47. BOOL ACRSWizardWelcomePage::OnInitDialog()
  48. {
  49. CWizard97PropertyPage::OnInitDialog();
  50. m_staticBigBold.SetFont (&GetBigBoldFont ());
  51. CString title;
  52. VERIFY (title.LoadString (IDS_ACRS_WIZARD_SHEET_CAPTION));
  53. CWnd* pParent = GetParent ();
  54. if ( pParent )
  55. pParent->SendMessage (PSM_SETTITLE, 0, (LPARAM) (LPCWSTR) title);
  56. return TRUE; // return TRUE unless you set the focus to a control
  57. // EXCEPTION: OCX Property Pages should return FALSE
  58. }
  59. BOOL ACRSWizardWelcomePage::OnSetActive()
  60. {
  61. BOOL bResult = CWizard97PropertyPage::OnSetActive();
  62. if ( bResult )
  63. GetParent ()->PostMessage (PSM_SETWIZBUTTONS, 0, PSWIZB_NEXT);
  64. return bResult;
  65. }