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.

87 lines
2.5 KiB

  1. /**************
  2. *
  3. * THIS ENTIRE FILE HAS BEEN COMMENTED OUT
  4. *
  5. * 8/16/96 jmazner Normandy #4593
  6. * The sole purpose of this file is to stick up a full screen window with the background color.
  7. * It was (apparently) originaly intended to eliminate any desktop icons/clutter, but has since
  8. * become known as the screen o' death and RAIDed as a bug.
  9. *
  10. #include "isignup.h"
  11. static char cszSplash[] = "Internet Signup Splash";
  12. long EXPORT FAR PASCAL SplashProc (HWND, UINT, UINT, LONG) ;
  13. HWND SplashInit(HWND hwndParent)
  14. {
  15. HWND hwnd ;
  16. WNDCLASS wndclass ;
  17. #ifdef WIN32
  18. RECT rect ;
  19. #endif
  20. wndclass.style = CS_HREDRAW | CS_VREDRAW ;
  21. wndclass.lpfnWndProc = SplashProc ;
  22. wndclass.cbClsExtra = 0 ;
  23. wndclass.cbWndExtra = 0 ;
  24. wndclass.hInstance = ghInstance ;
  25. wndclass.hIcon = NULL ;
  26. wndclass.hCursor = LoadCursor (NULL, IDC_ARROW) ;
  27. wndclass.hbrBackground = (HBRUSH)(COLOR_BACKGROUND + 1);
  28. wndclass.lpszMenuName = NULL ;
  29. wndclass.lpszClassName = cszSplash ;
  30. RegisterClass (&wndclass) ;
  31. hwnd = CreateWindow (cszSplash, // window class name
  32. cszAppName, // window caption
  33. WS_POPUP, // window style
  34. CW_USEDEFAULT, // initial x position
  35. CW_USEDEFAULT, // initial y position
  36. CW_USEDEFAULT, // initial x size
  37. CW_USEDEFAULT, // initial y size
  38. hwndParent, // parent window handle
  39. NULL, // window menu handle
  40. ghInstance, // program instance handle
  41. NULL) ; // creation parameters
  42. #ifdef WIN32
  43. // these were added as per ChrisK's instructions
  44. SystemParametersInfo(SPI_GETWORKAREA,0,(PVOID)&rect,0);
  45. MoveWindow(hwnd,rect.left,rect.top,rect.right-rect.left,rect.bottom-rect.top,FALSE);
  46. ShowWindow(hwnd,SW_NORMAL);
  47. #else
  48. ShowWindow(hwnd,SW_MAXIMIZE);
  49. #endif
  50. UpdateWindow(hwnd);
  51. return hwnd;
  52. }
  53. long EXPORT FAR PASCAL SplashProc (
  54. HWND hwnd,
  55. UINT message,
  56. UINT wParam,
  57. LONG lParam)
  58. {
  59. switch (message)
  60. {
  61. case WM_MOUSEACTIVATE:
  62. return MA_NOACTIVATEANDEAT;
  63. default:
  64. break;
  65. }
  66. return DefWindowProc (hwnd, message, wParam, lParam) ;
  67. }
  68. *
  69. *
  70. */