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.

50 lines
832 B

  1. #include "headers.hxx"
  2. #include "WelcomePage.hpp"
  3. #include "resource.h"
  4. #include "common.hpp"
  5. #include "global.hpp"
  6. WelcomePage::WelcomePage()
  7. :
  8. WizardPage(
  9. IDD_WELCOME,
  10. IDS_WELCOME_PAGE_TITLE,
  11. IDS_WELCOME_PAGE_SUBTITLE,
  12. false)
  13. {
  14. LOG_CTOR(WelcomePage);
  15. }
  16. WelcomePage::~WelcomePage()
  17. {
  18. LOG_DTOR(WelcomePage);
  19. }
  20. // WizardPage overrides
  21. bool
  22. WelcomePage::OnSetActive()
  23. {
  24. LOG_FUNCTION(WelcomePage::OnSetActive);
  25. EnableWindow(GetDlgItem(Win::GetParent(hwnd),IDCANCEL),true);
  26. Win::PropSheet_SetWizButtons(Win::GetParent(hwnd), PSWIZB_NEXT);
  27. return true;
  28. }
  29. void
  30. WelcomePage::OnInit()
  31. {
  32. LOG_FUNCTION(WelcomePage::OnInit);
  33. SetLargeFont(hwnd, IDC_BIG_BOLD_TITLE);
  34. Win::PropSheet_SetTitle(
  35. Win::GetParent(hwnd),
  36. 0,
  37. String::load(IDS_WIZARD_TITLE));
  38. };