| 1 | /* $Id: cursoricon.h,v 1.4 2000-11-19 11:50:13 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 |
|
|---|
| 16 | typedef struct
|
|---|
| 17 | {
|
|---|
| 18 | BYTE bWidth;
|
|---|
| 19 | BYTE bHeight;
|
|---|
| 20 | BYTE bColorCount;
|
|---|
| 21 | BYTE bReserved;
|
|---|
| 22 | } ICONRESDIR;
|
|---|
| 23 |
|
|---|
| 24 | typedef struct
|
|---|
| 25 | {
|
|---|
| 26 | WORD wWidth;
|
|---|
| 27 | WORD wHeight;
|
|---|
| 28 | } CURSORDIR;
|
|---|
| 29 |
|
|---|
| 30 | typedef 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 |
|
|---|
| 41 | typedef struct
|
|---|
| 42 | {
|
|---|
| 43 | WORD idReserved;
|
|---|
| 44 | WORD idType;
|
|---|
| 45 | WORD idCount;
|
|---|
| 46 | CURSORICONDIRENTRY idEntries[1] WINE_PACKED;
|
|---|
| 47 | } CURSORICONDIR;
|
|---|
| 48 |
|
|---|
| 49 | typedef 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 |
|
|---|
| 60 | typedef struct
|
|---|
| 61 | {
|
|---|
| 62 | WORD idReserved;
|
|---|
| 63 | WORD idType;
|
|---|
| 64 | WORD idCount;
|
|---|
| 65 | CURSORICONFILEDIRENTRY idEntries[1];
|
|---|
| 66 | } CURSORICONFILEDIR;
|
|---|
| 67 |
|
|---|
| 68 | typedef 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 | HINSTANCE hInstance;
|
|---|
| 78 | DWORD dwResGroupId;
|
|---|
| 79 | } CURSORICONINFO;
|
|---|
| 80 |
|
|---|
| 81 |
|
|---|
| 82 | #include "poppack.h"
|
|---|
| 83 |
|
|---|
| 84 | #define CID_RESOURCE 0x0001
|
|---|
| 85 | #define CID_WIN32 0x0004
|
|---|
| 86 | #define CID_NONSHARED 0x0008
|
|---|
| 87 |
|
|---|
| 88 | extern void CURSORICON_Init( void );
|
|---|
| 89 |
|
|---|
| 90 | extern HCURSOR16 CURSORICON_IconToCursor( HICON16 hIcon,
|
|---|
| 91 | BOOL bSemiTransparent );
|
|---|
| 92 |
|
|---|
| 93 | extern HGLOBAL CURSORICON_Load( HINSTANCE hInstance, LPCWSTR name,
|
|---|
| 94 | int width, int height, int colors,
|
|---|
| 95 | BOOL fCursor, UINT loadflags);
|
|---|
| 96 |
|
|---|
| 97 | extern WORD WIN32API CURSORICON_Destroy( HGLOBAL handle, UINT flags );
|
|---|
| 98 |
|
|---|
| 99 | extern void CURSORICON_FreeModuleIcons( HMODULE hModule );
|
|---|
| 100 |
|
|---|
| 101 | HGLOBAL CopyCursorIcon(HGLOBAL Handle, UINT nType,
|
|---|
| 102 | INT iDesiredCX, INT iDesiredCY,
|
|---|
| 103 | UINT nFlags);
|
|---|
| 104 |
|
|---|
| 105 | HGLOBAL WIN32API CreateCursorIconIndirect( HINSTANCE hInstance,
|
|---|
| 106 | CURSORICONINFO *info,
|
|---|
| 107 | LPCVOID lpANDbits,
|
|---|
| 108 | LPCVOID lpXORbits );
|
|---|
| 109 |
|
|---|
| 110 | HGLOBAL CURSORICON_ExtCopy(HGLOBAL Handle, UINT nType,
|
|---|
| 111 | INT iDesiredCX, INT iDesiredCY,
|
|---|
| 112 | UINT nFlags);
|
|---|
| 113 |
|
|---|
| 114 | #endif /* __WINE_CURSORICON_H */
|
|---|