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.

55 lines
1.1 KiB

  1. /****************************************************************************
  2. Copyright (c) Microsoft Corporation 1998
  3. All rights reserved
  4. File: SERVERDLG.CPP
  5. ***************************************************************************/
  6. #include "pch.h"
  7. #include "callback.h"
  8. #include "utils.h"
  9. //
  10. // CompleteDlgProc()
  11. //
  12. INT_PTR CALLBACK
  13. CompleteDlgProc(
  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. PropSheet_PressButton( GetParent( hDlg ), PSBTN_FINISH );
  33. break;
  34. case PSN_QUERYCANCEL:
  35. return VerifyCancel( hDlg );
  36. case PSN_SETACTIVE:
  37. PropSheet_SetWizButtons( GetParent( hDlg ), PSWIZB_NEXT | PSWIZB_BACK );
  38. ClearMessageQueue( );
  39. break;
  40. }
  41. break;
  42. }
  43. return TRUE;
  44. }