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.

52 lines
1.1 KiB

  1. /****************************************************************************
  2. Copyright (c) Microsoft Corporation 1998
  3. All rights reserved
  4. File: WELCOME.CPP
  5. ***************************************************************************/
  6. #include "pch.h"
  7. #include "callback.h"
  8. #include "utils.h"
  9. //
  10. // WelcomeDlgProc()
  11. //
  12. INT_PTR CALLBACK
  13. WelcomeDlgProc(
  14. HWND hDlg,
  15. UINT uMsg,
  16. WPARAM wParam,
  17. LPARAM lParam )
  18. {
  19. switch (uMsg)
  20. {
  21. default:
  22. return FALSE;
  23. case WM_INITDIALOG:
  24. SetDialogFont( hDlg, IDC_TITLE, DlgFontTitle );
  25. CenterDialog( GetParent( hDlg ) );
  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_QUERYCANCEL:
  33. return VerifyCancel( hDlg );
  34. case PSN_SETACTIVE:
  35. PropSheet_SetWizButtons( GetParent( hDlg ), PSWIZB_NEXT );
  36. ClearMessageQueue( );
  37. break;
  38. }
  39. break;
  40. }
  41. return TRUE;
  42. }