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.

65 lines
1.2 KiB

  1. //Copyright (c) 1997-2000 Microsoft Corporation
  2. #include "pch.hxx" // pch
  3. #pragma hdrstop
  4. #include "resource.h"
  5. #include "shlobj.h"
  6. #include "pgfinish.h"
  7. #define STRSAFE_NO_DEPRECATE
  8. #include "strsafe.h"
  9. FinishWizPg::FinishWizPg(
  10. LPPROPSHEETPAGE ppsp
  11. ) : WizardPage(ppsp, 0, 0)
  12. {
  13. m_dwPageId = IDD_WIZFINISH;
  14. ppsp->pszTemplate = MAKEINTRESOURCE(m_dwPageId);
  15. }
  16. FinishWizPg::~FinishWizPg(
  17. VOID
  18. )
  19. {
  20. }
  21. LRESULT
  22. FinishWizPg::OnInitDialog(
  23. HWND hwnd,
  24. WPARAM wParam,
  25. LPARAM lParam
  26. )
  27. {
  28. g_Options.ReportChanges(GetDlgItem(hwnd, IDC_SZCHANGES));
  29. return 1;
  30. }
  31. LRESULT
  32. FinishWizPg::OnPSN_SetActive(
  33. HWND hwnd,
  34. INT idCtl,
  35. LPPSHNOTIFY pnmh
  36. )
  37. {
  38. // Call the base class
  39. WizardPage::OnPSN_SetActive(hwnd, idCtl, pnmh);
  40. g_Options.ReportChanges(GetDlgItem(hwnd, IDC_SZCHANGES));
  41. return TRUE;
  42. }
  43. BOOL FinishWizPg::OnMsgNotify(HWND hwnd, int idCtrl, LPNMHDR pnmh)
  44. {
  45. // Hope the site addr is not more than 256 characters
  46. TCHAR webAddr[256];
  47. LoadString(g_hInstDll, IDS_ENABLEWEB, webAddr, 256);
  48. ShellExecute(hwnd, NULL, webAddr, NULL, NULL, SW_SHOW);
  49. return 0;
  50. }