Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

oslibres.h

Go to the documentation of this file.
00001 /* $Id: oslibres.h,v 1.9 2001/07/04 09:55:17 sandervl Exp $ */
00002 /*
00003  * Window GUI resource wrapper functions for OS/2
00004  *
00005  *
00006  * Copyright 1999 Sander van Leeuwen (sandervl@xs4all.nl)
00007  *
00008  *
00009  * Project Odin Software License can be found in LICENSE.TXT
00010  *
00011  */
00012 #ifndef __OSLIBRES_H__
00013 #define __OSLIBRES_H__
00014 
00015 #ifdef OS2_INCLUDED
00016 #include <win32type.h>
00017 #endif
00018 
00019 #include <win\cursoricon.h>
00020 
00021 #ifdef OS2_INCLUDED
00022 typedef struct
00023 {
00024   BYTE rgbBlue;
00025   BYTE rgbGreen;
00026   BYTE rgbRed;
00027   BYTE rgbReserved;
00028 } RGBQUAD, *LPRGBQUAD;
00029 #endif
00030 
00031 typedef struct
00032 {
00033     INT  bmType;
00034     INT  bmWidth;
00035     INT  bmHeight;
00036     INT  bmWidthBytes;
00037     WORD   bmPlanes;
00038     WORD   bmBitsPixel;
00039     LPVOID bmBits;
00040 } BITMAP_W, *LPBITMAP_W;
00041 
00042 HANDLE  OSLibWinSetAccelTable(HWND hwnd, HANDLE hAccel, PVOID acceltemplate);
00043 
00044 HANDLE  OSLibWinCreatePointer(CURSORICONINFO *pInfo, char *pAndBits, BITMAP_W *pAndBmp, char *pXorBits, BITMAP_W *pXorBmp, BOOL fCursor);
00045 HANDLE  OSLibWinQuerySysPointer(ULONG type,INT w,INT h);
00046 HANDLE  OSLibWinQuerySysIcon(ULONG type,INT w,INT h);
00047 VOID    OSLibWinDestroyPointer(HANDLE hPointer);
00048 BOOL    OSLibWinSetPointer(HANDLE hPointer);
00049 HANDLE  OSLibWinQueryPointer();
00050 BOOL    OSLibWinClipCursor(const RECT * pRect);
00051 BOOL    OSLibWinGetClipCursor(LPRECT pRect);
00052 
00053 
00054 
00055 BOOL APIENTRY _WinSetPointerClipRect(HWND hwnd, PRECTL pRect);
00056 BOOL APIENTRY _WinQueryPointerClipRect(HWND hwnd, PRECTL pRect);
00057 
00058 inline BOOL APIENTRY WinSetPointerClipRect(HWND hwnd, PRECTL pRect)
00059 {
00060  BOOL yyrc;
00061  USHORT sel = RestoreOS2FS();
00062 
00063     yyrc = _WinSetPointerClipRect(hwnd, pRect);
00064     SetFS(sel);
00065 
00066     return yyrc;
00067 }
00068 
00069 inline BOOL APIENTRY WinQueryPointerClipRect(HWND hwnd, PRECTL pRect)
00070 {
00071  BOOL yyrc;
00072  USHORT sel = RestoreOS2FS();
00073 
00074     yyrc = _WinQueryPointerClipRect(hwnd, pRect);
00075     SetFS(sel);
00076 
00077     return yyrc;
00078 }
00079 
00080 #endif //__OSLIBGDI_H__

Generated on Wed Jan 23 23:17:39 2002 for ODIN-user32 by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001