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.

62 lines
1.1 KiB

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