source: trunk/include/win/cursoricon.h@ 4576

Last change on this file since 4576 was 4576, checked in by sandervl, 25 years ago

header update

File size: 2.5 KB
Line 
1/* $Id: cursoricon.h,v 1.3 2000-11-09 18:23:22 sandervl Exp $ */
2
3/*
4 * Cursor and icon definitions
5 *
6 * Copyright 1995 Alexandre Julliard
7 */
8
9#ifndef __WINE_CURSORICON_H
10#define __WINE_CURSORICON_H
11
12#include "windef.h"
13
14#include "pshpack1.h"
15
16typedef struct
17{
18 BYTE bWidth;
19 BYTE bHeight;
20 BYTE bColorCount;
21 BYTE bReserved;
22} ICONRESDIR;
23
24typedef struct
25{
26 WORD wWidth;
27 WORD wHeight;
28} CURSORDIR;
29
30typedef struct
31{ union
32 { ICONRESDIR icon;
33 CURSORDIR cursor;
34 } ResInfo;
35 WORD wPlanes;
36 WORD wBitCount;
37 DWORD dwBytesInRes;
38 WORD wResId;
39} CURSORICONDIRENTRY;
40
41typedef struct
42{
43 WORD idReserved;
44 WORD idType;
45 WORD idCount;
46 CURSORICONDIRENTRY idEntries[1] WINE_PACKED;
47} CURSORICONDIR;
48
49typedef struct {
50 BYTE bWidth;
51 BYTE bHeight;
52 BYTE bColorCount;
53 BYTE bReserved;
54 WORD xHotspot;
55 WORD yHotspot;
56 DWORD dwDIBSize;
57 DWORD dwDIBOffset;
58} CURSORICONFILEDIRENTRY;
59
60typedef struct
61{
62 WORD idReserved;
63 WORD idType;
64 WORD idCount;
65 CURSORICONFILEDIRENTRY idEntries[1];
66} CURSORICONFILEDIR;
67
68typedef struct tagCURSORICONINFO
69{
70 POINT16 ptHotSpot;
71 WORD nWidth;
72 WORD nHeight;
73 WORD nWidthBytes;
74 BYTE bPlanes;
75 BYTE bBitsPerPixel;
76 HBITMAP hColorBmp;
77} CURSORICONINFO;
78
79
80#include "poppack.h"
81
82#define CID_RESOURCE 0x0001
83#define CID_WIN32 0x0004
84#define CID_NONSHARED 0x0008
85
86extern void CURSORICON_Init( void );
87
88extern HCURSOR16 CURSORICON_IconToCursor( HICON16 hIcon,
89 BOOL bSemiTransparent );
90
91extern HGLOBAL CURSORICON_Load( HINSTANCE hInstance, LPCWSTR name,
92 int width, int height, int colors,
93 BOOL fCursor, UINT loadflags);
94
95extern WORD WIN32API CURSORICON_Destroy( HGLOBAL handle, UINT flags );
96
97extern void CURSORICON_FreeModuleIcons( HMODULE hModule );
98
99HGLOBAL CopyCursorIcon(HGLOBAL Handle, UINT nType,
100 INT iDesiredCX, INT iDesiredCY,
101 UINT nFlags);
102
103HGLOBAL WIN32API CreateCursorIconIndirect( HINSTANCE hInstance,
104 CURSORICONINFO *info,
105 LPCVOID lpANDbits,
106 LPCVOID lpXORbits );
107
108HGLOBAL CURSORICON_ExtCopy(HGLOBAL Handle, UINT nType,
109 INT iDesiredCX, INT iDesiredCY,
110 UINT nFlags);
111
112#endif /* __WINE_CURSORICON_H */
Note: See TracBrowser for help on using the repository browser.