| 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 |
|
|---|
| 12 | typedef struct
|
|---|
| 13 | {
|
|---|
| 14 | BYTE bWidth;
|
|---|
| 15 | BYTE bHeight;
|
|---|
| 16 | BYTE bColorCount;
|
|---|
| 17 | BYTE bReserved;
|
|---|
| 18 | } ICONRESDIR;
|
|---|
| 19 |
|
|---|
| 20 | typedef struct
|
|---|
| 21 | {
|
|---|
| 22 | WORD wWidth;
|
|---|
| 23 | WORD wHeight;
|
|---|
| 24 | } CURSORDIR;
|
|---|
| 25 |
|
|---|
| 26 | typedef 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 |
|
|---|
| 37 | typedef struct
|
|---|
| 38 | {
|
|---|
| 39 | WORD idReserved;
|
|---|
| 40 | WORD idType;
|
|---|
| 41 | WORD idCount;
|
|---|
| 42 | CURSORICONDIRENTRY idEntries[1];
|
|---|
| 43 | } CURSORICONDIR;
|
|---|
| 44 |
|
|---|
| 45 | typedef 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 |
|
|---|
| 56 | typedef struct
|
|---|
| 57 | {
|
|---|
| 58 | WORD idReserved;
|
|---|
| 59 | WORD idType;
|
|---|
| 60 | WORD idCount;
|
|---|
| 61 | CURSORICONFILEDIRENTRY idEntries[1];
|
|---|
| 62 | } CURSORICONFILEDIR;
|
|---|
| 63 |
|
|---|
| 64 | typedef 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 |
|
|---|
| 84 | extern void CURSORICON_Init( void );
|
|---|
| 85 |
|
|---|
| 86 | extern HGLOBAL CURSORICON_Load( HINSTANCE hInstance, LPCWSTR name,
|
|---|
| 87 | int width, int height, int colors,
|
|---|
| 88 | BOOL fCursor, UINT loadflags);
|
|---|
| 89 |
|
|---|
| 90 | extern WORD WIN32API CURSORICON_Destroy( HGLOBAL handle, UINT flags );
|
|---|
| 91 |
|
|---|
| 92 | extern void CURSORICON_FreeModuleIcons( HMODULE hModule );
|
|---|
| 93 |
|
|---|
| 94 | HGLOBAL CopyCursorIcon(HGLOBAL Handle, UINT nType,
|
|---|
| 95 | INT iDesiredCX, INT iDesiredCY,
|
|---|
| 96 | UINT nFlags);
|
|---|
| 97 |
|
|---|
| 98 | HGLOBAL CURSORICON_ExtCopy(HGLOBAL Handle, UINT nType,
|
|---|
| 99 | INT iDesiredCX, INT iDesiredCY,
|
|---|
| 100 | UINT nFlags);
|
|---|
| 101 |
|
|---|
| 102 | #endif /* __WINE_CURSORICON_H */
|
|---|