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.

81 lines
1.3 KiB

  1. //+----------------------------------------------------------------------------
  2. //
  3. // Windows NT Secure Server Roles Security Configuration Wizard
  4. //
  5. // Microsoft Windows
  6. // Copyright (C) Microsoft Corporation, 1992 - 2002
  7. //
  8. // File: WelcomePage.cxx
  9. //
  10. // Contents: Welcome Page.
  11. //
  12. // History: 2-Oct-01 EricB created
  13. //
  14. //-----------------------------------------------------------------------------
  15. #include "pch.h"
  16. #include "resource.h"
  17. #include "misc.h"
  18. #include "state.h"
  19. #include "WelcomePage.h"
  20. WelcomePage::WelcomePage()
  21. :
  22. SecCfgWizardPage(
  23. IDD_WELCOME,
  24. IDS_WELCOME_PAGE_TITLE,
  25. IDS_WELCOME_PAGE_SUBTITLE,
  26. false)
  27. {
  28. LOG_CTOR(WelcomePage);
  29. }
  30. WelcomePage::~WelcomePage()
  31. {
  32. LOG_DTOR(WelcomePage);
  33. }
  34. void
  35. WelcomePage::OnInit()
  36. {
  37. LOG_FUNCTION(WelcomePage::OnInit);
  38. SetLargeFont(hwnd, IDC_BIG_BOLD_TITLE);
  39. Win::PropSheet_SetTitle(
  40. Win::GetParent(hwnd),
  41. 0,
  42. String::load(IDS_WIZARD_TITLE));
  43. }
  44. bool
  45. WelcomePage::OnSetActive()
  46. {
  47. LOG_FUNCTION(WelcomePage::OnSetActive);
  48. Win::PropSheet_SetWizButtons(Win::GetParent(hwnd), PSWIZB_NEXT);
  49. return true;
  50. }
  51. int
  52. WelcomePage::Validate()
  53. {
  54. LOG_FUNCTION(WelcomePage::Validate);
  55. return IDD_SELECTCFG_NAME;
  56. }