|
|
1.1 root 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:
9:
10: #ifndef _RESIMAGE_H_
11: #define _RESIMAGE_H_
12:
13:
14: /*
15: * Indices into the bitmaps to extract the right image. Each bitmap
16: * contains five images arranged vertically, so the offset to the correct
17: * image is (iImage*cy)
18: */
19:
20: #define RESULTIMAGE_NONE 0xFFFF
21: #define RESULTIMAGE_PASTE 0
22: #define RESULTIMAGE_EMBED 1
23: #define RESULTIMAGE_EMBEDICON 2
24: #define RESULTIMAGE_LINK 3
25: #define RESULTIMAGE_LINKICON 4
26: #define RESULTIMAGE_LINKTOLINK 5
27: #define RESULTIMAGE_LINKTOLINKICON 6
28:
29: #define RESULTIMAGE_MIN 0
30: #define RESULTIMAGE_MAX 6
31:
32:
33: //Total number of images in each bitmap.
34: #define CIMAGESY (RESULTIMAGE_MAX+1)
35:
36: //The color to use for transparancy (cyan)
37: #define RGBTRANSPARENT RGB(0, 255, 255)
38:
39:
40: //Function prototypes
41: BOOL FResultImageInitialize(HINSTANCE);
42: void ResultImageUninitialize(void);
43: LONG CALLBACK EXPORT ResultImageWndProc(HWND, UINT, WPARAM, LPARAM);
44: void TransparentBlt(HDC, UINT, UINT, HBITMAP, UINT, UINT, UINT, UINT, COLORREF);
45:
46:
47: //Window extra bytes contain the bitmap index we deal with currently.
48: #define CBRESULTIMAGEWNDEXTRA sizeof(UINT)
49: #define RIWW_IMAGEINDEX 0
50:
51:
52: //Control messages
53: #define RIM_IMAGESET (WM_USER+0)
54: #define RIM_IMAGEGET (WM_USER+1)
55:
56:
57: //Special ROP code for TransparentBlt.
58: #define ROP_DSPDxax 0x00E20746
59:
60:
61: #endif //_RESIMAGE_H_
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.