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.

45 lines
1.5 KiB

  1. #ifndef _INC_IMAGE
  2. #define _INC_IMAGE
  3. // internal image stuff
  4. EXTERN_C void FAR PASCAL InitDitherBrush(void);
  5. EXTERN_C void FAR PASCAL TerminateDitherBrush(void);
  6. EXTERN_C HBITMAP FAR PASCAL CreateMonoBitmap(int cx, int cy);
  7. EXTERN_C HBITMAP FAR PASCAL CreateColorBitmap(int cx, int cy);
  8. EXTERN_C void WINAPI ImageList_CopyDitherImage(HIMAGELIST pimlDest, WORD iDst,
  9. int xDst, int yDst, HIMAGELIST pimlSrc, int iSrc, UINT fStyle);
  10. // function to create a imagelist using the params of a given image list
  11. EXTERN_C HIMAGELIST WINAPI ImageList_Clone(HIMAGELIST himl, int cx, int cy,
  12. UINT flags, int cInitial, int cGrow);
  13. #define GLOW_RADIUS 10
  14. #define DROP_SHADOW 3
  15. #ifndef ILC_COLORMASK
  16. #define ILC_COLORMASK 0x00FE
  17. #define ILD_BLENDMASK 0x000E
  18. #endif
  19. #undef ILC_COLOR
  20. #undef ILC_BLEND
  21. #define CLR_WHITE 0x00FFFFFFL
  22. #define CLR_BLACK 0x00000000L
  23. #define IsImageListIndex(i) ((i) >= 0 && (i) < _cImage)
  24. #define IMAGELIST_SIG mmioFOURCC('H','I','M','L') // in memory magic
  25. #define IMAGELIST_MAGIC ('I' + ('L' * 256)) // file format magic
  26. // Version has to stay 0x0101 if we want both back ward and forward compatibility for
  27. // our imagelist_read code
  28. #define IMAGELIST_VER0 0x0101 // file format ver
  29. // #define IMAGELIST_VER1 0x0102 // Image list version 2 -- this one has 15 overlay slots
  30. #define BFTYPE_BITMAP 0x4D42 // "BM"
  31. #define CBDIBBUF 4096
  32. #endif // _INC_IMAGE