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.

61 lines
1.4 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. UNREFERENCED_PARAMETER(wParam);
  20. switch (uMsg)
  21. {
  22. case WM_INITDIALOG:
  23. SetDialogFont( hDlg, IDC_TITLE, DlgFontTitle );
  24. break;
  25. default:
  26. return FALSE;
  27. case WM_NOTIFY:
  28. SetWindowLongPtr( hDlg, DWLP_MSGRESULT, FALSE );
  29. LPNMHDR lpnmhdr = (LPNMHDR) lParam;
  30. switch ( lpnmhdr->code )
  31. {
  32. case PSN_WIZNEXT:
  33. break;
  34. case PSN_QUERYCANCEL:
  35. return VerifyCancel( hDlg );
  36. case PSN_SETACTIVE:
  37. SetDlgItemText( hDlg, IDC_S_SERVERNAME, g_ServerName );
  38. SetDlgItemText( hDlg, IDC_S_DIRECTORY, g_MirrorDir );
  39. SetDlgItemText( hDlg, IDC_E_DESCRIPTION, g_Description );
  40. SetDlgItemText( hDlg, IDC_E_HELPTEXT, g_HelpText );
  41. PropSheet_SetWizButtons( GetParent( hDlg ), PSWIZB_NEXT | PSWIZB_BACK );
  42. ClearMessageQueue( );
  43. break;
  44. }
  45. break;
  46. }
  47. return TRUE;
  48. }