Ignore:
Timestamp:
Mar 27, 2001, 6:17:52 PM (24 years ago)
Author:
sandervl
Message:

cursor handling updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/oslibres.h

    r4573 r5385  
    1 /* $Id: oslibres.h,v 1.5 2000-11-09 18:15:18 sandervl Exp $ */
     1/* $Id: oslibres.h,v 1.6 2001-03-27 16:17:52 sandervl Exp $ */
    22/*
    33 * Window GUI resource wrapper functions for OS/2
     
    1414
    1515#ifdef OS2_INCLUDED
    16 #include "win32type.h"
     16#include <win32type.h>
    1717#endif
     18
     19#include <win\cursoricon.h>
     20
     21#ifdef OS2_INCLUDED
     22typedef struct
     23{
     24  BYTE rgbBlue;
     25  BYTE rgbGreen;
     26  BYTE rgbRed;
     27  BYTE rgbReserved;
     28} RGBQUAD, *LPRGBQUAD;
     29#endif
     30
     31typedef struct
     32{
     33    INT  bmType;
     34    INT  bmWidth;
     35    INT  bmHeight;
     36    INT  bmWidthBytes;
     37    WORD   bmPlanes;
     38    WORD   bmBitsPixel;
     39    LPVOID bmBits;
     40} BITMAP_W, *LPBITMAP_W;
    1841
    1942HANDLE  OSLibWinSetAccelTable(HWND hwnd, HANDLE hAccel, PVOID acceltemplate);
    2043HANDLE  OSLibWinCreateIcon(PVOID iconbitmap, ULONG cxDesired, ULONG cyDesired);
     44
     45//NOTE: Depends on origin of bitmap data!!!
     46//      Assumes 1 bpp bitmaps have a top left origin and all others have a bottom left origin
    2147HANDLE  OSLibWinCreatePointer(PVOID cursorbitmap, ULONG cxDesired, ULONG cyDesired);
     48
     49HANDLE  OSLibWinCreateCursor(CURSORICONINFO *pInfo, char *pAndBits, BITMAP_W *pAndBmp, char *pXorBits, BITMAP_W *pXorBmp);
    2250HANDLE  OSLibWinQuerySysPointer(ULONG type,INT w,INT h);
    2351HANDLE  OSLibWinQuerySysIcon(ULONG type,INT w,INT h);
     52VOID    OSLibWinDestroyPointer(HANDLE hPointer);
     53BOOL    OSLibWinSetPointer(HANDLE hPointer);
    2454
    2555#endif //__OSLIBGDI_H__
Note: See TracChangeset for help on using the changeset viewer.