| 1 | /* $Id: cursoricon.h,v 1.5 2001-03-27 16:15:49 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 "pshpack1.h" | 
|---|
| 13 |  | 
|---|
| 14 | typedef struct | 
|---|
| 15 | { | 
|---|
| 16 | BYTE   bWidth; | 
|---|
| 17 | BYTE   bHeight; | 
|---|
| 18 | BYTE   bColorCount; | 
|---|
| 19 | BYTE   bReserved; | 
|---|
| 20 | } ICONRESDIR; | 
|---|
| 21 |  | 
|---|
| 22 | typedef struct | 
|---|
| 23 | { | 
|---|
| 24 | WORD   wWidth; | 
|---|
| 25 | WORD   wHeight; | 
|---|
| 26 | } CURSORDIR; | 
|---|
| 27 |  | 
|---|
| 28 | typedef struct | 
|---|
| 29 | {   union | 
|---|
| 30 | { ICONRESDIR icon; | 
|---|
| 31 | CURSORDIR  cursor; | 
|---|
| 32 | } ResInfo; | 
|---|
| 33 | WORD   wPlanes; | 
|---|
| 34 | WORD   wBitCount; | 
|---|
| 35 | DWORD  dwBytesInRes; | 
|---|
| 36 | WORD   wResId; | 
|---|
| 37 | } CURSORICONDIRENTRY; | 
|---|
| 38 |  | 
|---|
| 39 | typedef struct | 
|---|
| 40 | { | 
|---|
| 41 | WORD                idReserved; | 
|---|
| 42 | WORD                idType; | 
|---|
| 43 | WORD                idCount; | 
|---|
| 44 | CURSORICONDIRENTRY  idEntries[1]; | 
|---|
| 45 | } CURSORICONDIR; | 
|---|
| 46 |  | 
|---|
| 47 | typedef struct { | 
|---|
| 48 | BYTE bWidth; | 
|---|
| 49 | BYTE bHeight; | 
|---|
| 50 | BYTE bColorCount; | 
|---|
| 51 | BYTE bReserved; | 
|---|
| 52 | WORD xHotspot; | 
|---|
| 53 | WORD yHotspot; | 
|---|
| 54 | DWORD dwDIBSize; | 
|---|
| 55 | DWORD dwDIBOffset; | 
|---|
| 56 | } CURSORICONFILEDIRENTRY; | 
|---|
| 57 |  | 
|---|
| 58 | typedef struct | 
|---|
| 59 | { | 
|---|
| 60 | WORD                idReserved; | 
|---|
| 61 | WORD                idType; | 
|---|
| 62 | WORD                idCount; | 
|---|
| 63 | CURSORICONFILEDIRENTRY  idEntries[1]; | 
|---|
| 64 | } CURSORICONFILEDIR; | 
|---|
| 65 |  | 
|---|
| 66 | typedef struct tagCURSORICONINFO | 
|---|
| 67 | { | 
|---|
| 68 | POINT16 ptHotSpot; | 
|---|
| 69 | WORD    nWidth; | 
|---|
| 70 | WORD    nHeight; | 
|---|
| 71 | WORD    nWidthBytes; | 
|---|
| 72 | BYTE    bPlanes; | 
|---|
| 73 | BYTE    bBitsPerPixel; | 
|---|
| 74 | HBITMAP hColorBmp; | 
|---|
| 75 | HINSTANCE hInstance; | 
|---|
| 76 | DWORD     dwResGroupId; | 
|---|
| 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 |  | 
|---|
| 86 | extern void CURSORICON_Init( void ); | 
|---|
| 87 |  | 
|---|
| 88 | extern HGLOBAL CURSORICON_Load( HINSTANCE hInstance, LPCWSTR name, | 
|---|
| 89 | int width, int height, int colors, | 
|---|
| 90 | BOOL fCursor, UINT loadflags); | 
|---|
| 91 |  | 
|---|
| 92 | extern WORD WIN32API CURSORICON_Destroy( HGLOBAL handle, UINT flags ); | 
|---|
| 93 |  | 
|---|
| 94 | extern void CURSORICON_FreeModuleIcons( HMODULE hModule ); | 
|---|
| 95 |  | 
|---|
| 96 | HGLOBAL CopyCursorIcon(HGLOBAL Handle, UINT nType, | 
|---|
| 97 | INT iDesiredCX, INT iDesiredCY, | 
|---|
| 98 | UINT nFlags); | 
|---|
| 99 |  | 
|---|
| 100 | HGLOBAL WIN32API CreateCursorIconIndirect( HINSTANCE hInstance, | 
|---|
| 101 | CURSORICONINFO *info, | 
|---|
| 102 | LPCVOID lpANDbits, | 
|---|
| 103 | LPCVOID lpXORbits ); | 
|---|
| 104 |  | 
|---|
| 105 | HGLOBAL CURSORICON_ExtCopy(HGLOBAL Handle, UINT nType, | 
|---|
| 106 | INT iDesiredCX, INT iDesiredCY, | 
|---|
| 107 | UINT nFlags); | 
|---|
| 108 |  | 
|---|
| 109 | #endif /* __WINE_CURSORICON_H */ | 
|---|