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.

121 lines
2.3 KiB

  1. /*++
  2. Copyright (c) 1990-1995 Microsoft Corporation
  3. Module Name:
  4. image.h
  5. Abstract:
  6. This module contains global definitions for the image.c
  7. Author:
  8. 06-Jul-1995 Thu 18:39:58 created -by- Daniel Chou (danielc)
  9. [Environment:]
  10. NT Windows - Common Printer Driver UI DLL.
  11. [Notes:]
  12. Revision History:
  13. --*/
  14. //
  15. // Internal OPTITEMs
  16. //
  17. #define CXICON 16
  18. #define CYICON 16
  19. #define CXIMAGE 16
  20. #define ICON_X_OFF ((CXIMAGE - CXICON) >> 1)
  21. #define X_WARNOVLY_ADD 3
  22. #define Y_WARNOVLY_ADD -3
  23. #define LBCB_ICON_X_OFF 3
  24. #define LBCB_ICON_TEXT_X_SEP 4
  25. #define COUNT_GROW_IMAGES 16
  26. #define ROP_DPa 0x00A000C9
  27. #define ROP_DPo 0x00FA0089
  28. #define ROP_DPna 0x000A0329
  29. #define MIM_STOP_OVERLAY 0x0001
  30. #define MIM_WARNING_OVERLAY 0x0002
  31. #define MIM_NO_OVERLAY 0x0004
  32. #define MIM_MASK 0x0007
  33. #define MIM_MAX_OVERLAY 3
  34. #define MK_INTICONID(i,m) (DWORD)MAKELONG((i),(m))
  35. #define GET_INTICONID(x) (WORD)LOWORD(LODWORD(x))
  36. #define GET_MERGEICONID(x) (WORD)(HIWORD(LOWORD(x)) & MIM_MASK)
  37. #define ALIGN_DW(cx, bpp) (((((DWORD)cx * (DWORD)bpp) + 31L) & ~31) >> 3)
  38. #define PBIH_HDR_SIZE(pbih) (UINT)(((pbih)->biSize) + \
  39. (((pbih)->biCompression == BI_BITFIELDS) ? \
  40. 12 : (pbih)->biClrUsed * sizeof(RGBQUAD)))
  41. #define BIH_HDR_SIZE(bih) (UINT)(((bih).biSize) + \
  42. (((bih).biCompression == BI_BITFIELDS) ? \
  43. 12 : (bih).biClrUsed * sizeof(RGBQUAD)))
  44. HBRUSH
  45. CreateGrayBrush(
  46. COLORREF Color
  47. );
  48. VOID
  49. DestroyGrayBrush(
  50. HBRUSH hBrush
  51. );
  52. HICON
  53. SetIcon(
  54. HINSTANCE hInst,
  55. HWND hCtrl,
  56. ULONG_PTR IconResID,
  57. DWORD IntIconID,
  58. UINT cxcyIcon
  59. );
  60. LONG
  61. CreateImageList(
  62. HWND hDlg,
  63. PTVWND pTVWnd
  64. );
  65. WORD
  66. GetIcon16Idx(
  67. PTVWND pTVWnd,
  68. HINSTANCE hInst,
  69. ULONG_PTR IconResID,
  70. DWORD IntIconID
  71. );
  72. HICON
  73. MergeIcon(
  74. HINSTANCE hInst,
  75. ULONG_PTR IconResID,
  76. DWORD IntIconID,
  77. UINT cxIcon,
  78. UINT cyIcon
  79. );