| Line | |
|---|
| 1 | /* $Id: cursoricon.h,v 1.1 1999-05-24 20:19:10 ktk 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 |
|
|---|
| 69 | #include "poppack.h"
|
|---|
| 70 |
|
|---|
| 71 | #define CID_RESOURCE 0x0001
|
|---|
| 72 | #define CID_WIN32 0x0004
|
|---|
| 73 | #define CID_NONSHARED 0x0008
|
|---|
| 74 |
|
|---|
| 75 | extern void CURSORICON_Init( void );
|
|---|
| 76 |
|
|---|
| 77 | extern HCURSOR16 CURSORICON_IconToCursor( HICON16 hIcon,
|
|---|
| 78 | BOOL bSemiTransparent );
|
|---|
| 79 |
|
|---|
| 80 | extern HGLOBAL CURSORICON_Load( HINSTANCE hInstance, LPCWSTR name,
|
|---|
| 81 | int width, int height, int colors,
|
|---|
| 82 | BOOL fCursor, UINT loadflags);
|
|---|
| 83 |
|
|---|
| 84 | extern WORD WINAPI CURSORICON_Destroy( HGLOBAL16 handle, UINT16 flags );
|
|---|
| 85 |
|
|---|
| 86 | extern void CURSORICON_FreeModuleIcons( HMODULE hModule );
|
|---|
| 87 |
|
|---|
| 88 | #endif /* __WINE_CURSORICON_H */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.