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.

62 lines
1.6 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_MIN 0
  24. #define RESULTIMAGE_MAX 6
  25. //Total number of images in each bitmap.
  26. #define CIMAGESY (RESULTIMAGE_MAX+1)
  27. //The color to use for transparancy (cyan)
  28. #define RGBTRANSPARENT RGB(0, 255, 255)
  29. //Function prototypes
  30. BOOL FResultImageInitialize(HINSTANCE, HINSTANCE, LPTSTR);
  31. void ResultImageUninitialize(void);
  32. LONG CALLBACK EXPORT ResultImageWndProc(HWND, UINT, WPARAM, LPARAM);
  33. void TransparantBlt(HDC, UINT, UINT, HBITMAP, UINT, UINT, UINT, UINT, COLORREF);
  34. //Window extra bytes contain the bitmap index we deal with currently.
  35. #define CBRESULTIMAGEWNDEXTRA sizeof(UINT)
  36. #define RIWW_IMAGEINDEX 0
  37. //Control messages
  38. #define RIM_IMAGESET (WM_USER+0)
  39. #define RIM_IMAGEGET (WM_USER+1)
  40. //Special ROP code for TransparantBlt.
  41. #define ROP_DSPDxax 0x00E20746
  42. #endif //_RESIMAGE_H_
  43.