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.

37 lines
664 B

  1. // msg.cpp
  2. //
  3. // Copyright 2000 Microsoft Corporation, all rights reserved
  4. //
  5. // Created 2-00 anbrad
  6. //
  7. #include "resource.h"
  8. #include "dsubmit.h"
  9. #include "main.h"
  10. static UINT_PTR uTimer;
  11. INT_PTR CALLBACK DlgProcMsg(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
  12. {
  13. switch (msg)
  14. {
  15. case WM_INITDIALOG:
  16. CentreWindow(hwnd);
  17. SetDlgItemText(hwnd, IDC_MSG, g_szMsg);
  18. uTimer = SetTimer(hwnd, 1, 1000, NULL);
  19. return TRUE;
  20. case WM_TIMER:
  21. KillTimer(hwnd, uTimer);
  22. PostQuitMessage(0);
  23. EndDialog(hwnd, 0);
  24. break;
  25. default:
  26. return FALSE;
  27. };
  28. return TRUE;
  29. }