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.

66 lines
1.4 KiB

  1. /*++
  2. Copyright (c) Microsoft Corporation. All rights reserved.
  3. Module Name:
  4. Splash.h
  5. Abstract:
  6. Definition for the splash screen class.
  7. Notes:
  8. ANSI & Unicode via TCHAR - runs on Win9x/NT/2K/XP etc.
  9. History:
  10. 01/30/01 rparsons Created
  11. 01/10/02 rparsons Revised
  12. 01/27/02 rparsons Converted to TCHAR
  13. --*/
  14. #ifndef _CSPLASH_H
  15. #define _CSPLASH_H
  16. #include <windows.h>
  17. #include <tchar.h>
  18. #define PALVERSION 0x300
  19. #define MAXPALETTE 256
  20. class CSplash {
  21. public:
  22. CSplash();
  23. void Create(IN HINSTANCE hInstance,
  24. IN DWORD dwLoColorBitmapId,
  25. IN DWORD dwHiColorBitmapId OPTIONAL,
  26. IN DWORD dwDuration);
  27. private:
  28. HINSTANCE m_hInstance;
  29. DWORD m_dwDuration;
  30. DWORD m_dwSplashId;
  31. BOOL InitSplashScreen(IN HINSTANCE hInstance);
  32. BOOL CreateSplashWindow();
  33. HPALETTE CreateSpectrumPalette();
  34. HPALETTE CreatePaletteFromRGBQUAD(IN LPRGBQUAD rgbqPalette,
  35. IN WORD cElements);
  36. void DisplayBitmap(IN HWND hWnd, IN DWORD dwResId);
  37. static LRESULT CALLBACK SplashWndProc(IN HWND hWnd,
  38. IN UINT uMsg,
  39. IN WPARAM wParam,
  40. IN LPARAM lParam);
  41. };
  42. #endif // _CSPLASH_H