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.

78 lines
1.4 KiB

  1. // Copyright (c) 1997-2001 Microsoft Corporation
  2. //
  3. // File: TerminalServerPage.cpp
  4. //
  5. // Synopsis: Defines the Terminal server page of the CYS wizard
  6. //
  7. // History: 02/08/2001 JeffJon Created
  8. #include "pch.h"
  9. #include "resource.h"
  10. #include "InstallationUnitProvider.h"
  11. #include "TerminalServerPage.h"
  12. #include "state.h"
  13. static PCWSTR TERMINALSERVER_PAGE_HELP = L"cys.chm::/cys_configuring_application_server.htm";
  14. TerminalServerPage::TerminalServerPage()
  15. :
  16. CYSWizardPage(
  17. IDD_TERMINAL_SERVER_PAGE,
  18. IDS_TERMINAL_SERVER_TITLE,
  19. IDS_TERMINAL_SERVER_SUBTITLE,
  20. TERMINALSERVER_PAGE_HELP)
  21. {
  22. LOG_CTOR(TerminalServerPage);
  23. }
  24. TerminalServerPage::~TerminalServerPage()
  25. {
  26. LOG_DTOR(TerminalServerPage);
  27. }
  28. void
  29. TerminalServerPage::OnInit()
  30. {
  31. LOG_FUNCTION(TerminalServerPage::OnInit);
  32. Win::Button_SetCheck(GetDlgItem(hwnd, IDC_NO_RADIO), BST_CHECKED);
  33. }
  34. bool
  35. TerminalServerPage::OnSetActive()
  36. {
  37. LOG_FUNCTION(TerminalServerPage::OnSetActive);
  38. Win::PropSheet_SetWizButtons(
  39. Win::GetParent(hwnd),
  40. PSWIZB_NEXT | PSWIZB_BACK);
  41. return true;
  42. }
  43. int
  44. TerminalServerPage::Validate()
  45. {
  46. LOG_FUNCTION(TerminalServerPage::Validate);
  47. int nextPage = -1;
  48. InstallationUnitProvider::GetInstance().GetApplicationInstallationUnit().SetInstallTS(
  49. Win::Button_GetCheck(GetDlgItem(hwnd, IDC_YES_RADIO)));
  50. nextPage = IDD_FINISH_PAGE;
  51. return nextPage;
  52. }