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.

56 lines
1.7 KiB

  1. /*
  2. * RESIMAGE.H
  3. *
  4. * Structures and definitions for the ResultImage control.
  5. *
  6. * Copyright (c)1992 Microsoft Corporation, All Right Reserved
  7. */
  8. #ifndef _RESIMAGE_H_
  9. #define _RESIMAGE_H_
  10. /*
  11. * Indices into the bitmaps to extract the right image. Each bitmap
  12. * contains five images arranged vertically, so the offset to the correct
  13. * image is (iImage*cy)
  14. */
  15. #define RESULTIMAGE_NONE 0xFFFF
  16. #define RESULTIMAGE_PASTE 0
  17. #define RESULTIMAGE_EMBED 1
  18. #define RESULTIMAGE_EMBEDICON 2
  19. #define RESULTIMAGE_LINK 3
  20. #define RESULTIMAGE_LINKICON 4
  21. #define RESULTIMAGE_LINKTOLINK 5
  22. #define RESULTIMAGE_LINKTOLINKICON 6
  23. #define RESULTIMAGE_EDITABLE 7
  24. #define RESULTIMAGE_MIN 0
  25. #define RESULTIMAGE_MAX 7
  26. // Total number of images in each bitmap.
  27. #define CIMAGESX (RESULTIMAGE_MAX+1)
  28. // The color to use for transparancy (cyan)
  29. #define RGBTRANSPARENT RGB(0, 255, 255)
  30. // Function prototypes
  31. LRESULT CALLBACK ResultImageWndProc(HWND, UINT, WPARAM, LPARAM);
  32. BOOL FResultImageInitialize(HINSTANCE, HINSTANCE);
  33. void ResultImageUninitialize(void);
  34. void TransparentBlt(HDC, UINT, UINT, HBITMAP, UINT, UINT, UINT, UINT, COLORREF);
  35. // Window extra bytes contain the bitmap index we deal with currently.
  36. #define CBRESULTIMAGEWNDEXTRA sizeof(UINT)
  37. #define RIWW_IMAGEINDEX 0
  38. // Control messages
  39. #define RIM_IMAGESET (WM_USER+0)
  40. #define RIM_IMAGEGET (WM_USER+1)
  41. // Special ROP code for TransparentBlt.
  42. #define ROP_DSPDxax 0x00E20746
  43. #endif //_RESIMAGE_H_