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.

58 lines
1.2 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. 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. PropSheet_PressButton( GetParent( hDlg ), PSBTN_FINISH );
  34. break;
  35. case PSN_QUERYCANCEL:
  36. return VerifyCancel( hDlg );
  37. case PSN_SETACTIVE:
  38. PropSheet_SetWizButtons( GetParent( hDlg ), PSWIZB_NEXT | PSWIZB_BACK );
  39. ClearMessageQueue( );
  40. break;
  41. }
  42. break;
  43. }
  44. return TRUE;
  45. }