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

Last change on this file since 10367 was 6593, checked in by sandervl, 24 years ago

header updates

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