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.

58 lines
1.3 KiB

  1. /****************************************************************************
  2. Copyright (c) Microsoft Corporation 1998
  3. All rights reserved
  4. File: SUMMARY.CPP
  5. ***************************************************************************/
  6. #include "pch.h"
  7. #include "callback.h"
  8. #include "utils.h"
  9. //
  10. // SummaryDlgProc()
  11. //
  12. INT_PTR CALLBACK
  13. SummaryDlgProc(
  14. HWND hDlg,
  15. UINT uMsg,
  16. WPARAM wParam,
  17. LPARAM lParam )
  18. {
  19. switch (uMsg)
  20. {
  21. case WM_INITDIALOG:
  22. SetDialogFont( hDlg, IDC_TITLE, DlgFontTitle );
  23. break;
  24. default:
  25. return FALSE;
  26. case WM_NOTIFY:
  27. SetWindowLongPtr( hDlg, DWLP_MSGRESULT, FALSE );
  28. LPNMHDR lpnmhdr = (LPNMHDR) lParam;
  29. switch ( lpnmhdr->code )
  30. {
  31. case PSN_WIZNEXT:
  32. break;
  33. case PSN_QUERYCANCEL:
  34. return VerifyCancel( hDlg );
  35. case PSN_SETACTIVE:
  36. SetDlgItemText( hDlg, IDC_S_SERVERNAME, g_ServerName );
  37. SetDlgItemText( hDlg, IDC_S_DIRECTORY, g_MirrorDir );
  38. SetDlgItemText( hDlg, IDC_E_DESCRIPTION, g_Description );
  39. SetDlgItemText( hDlg, IDC_E_HELPTEXT, g_HelpText );
  40. PropSheet_SetWizButtons( GetParent( hDlg ), PSWIZB_NEXT | PSWIZB_BACK );
  41. ClearMessageQueue( );
  42. break;
  43. }
  44. break;
  45. }
  46. return TRUE;
  47. }