1 | /* $Id: oslibgdi.h,v 1.1 1999-07-18 10:39:51 sandervl Exp $ */
|
---|
2 | /*
|
---|
3 | * Window GDI wrapper functions for OS/2
|
---|
4 | *
|
---|
5 | *
|
---|
6 | * Copyright 1999 Sander van Leeuwen (sandervl@xs4all.nl)
|
---|
7 | *
|
---|
8 | *
|
---|
9 | * Project Odin Software License can be found in LICENSE.TXT
|
---|
10 | *
|
---|
11 | */
|
---|
12 | #ifndef __OSLIBGDI_H__
|
---|
13 | #define __OSLIBGDI_H__
|
---|
14 |
|
---|
15 | #ifdef OS2_INCLUDED
|
---|
16 | #include "win32type.h"
|
---|
17 | #endif
|
---|
18 |
|
---|
19 | typedef struct
|
---|
20 | {
|
---|
21 | LONG xLeft;
|
---|
22 | LONG yBottom;
|
---|
23 | LONG xRight;
|
---|
24 | LONG yTop;
|
---|
25 | } RECTLOS2, *PRECTLOS2;
|
---|
26 |
|
---|
27 | HDC OSLibWinBeginPaint(HWND hwnd, PVOID pRectl);
|
---|
28 | BOOL OSLibWinEndPaint(HDC hdc);
|
---|
29 |
|
---|
30 | HDC OSLibWinGetPS(HWND hwnd);
|
---|
31 | BOOL OSLibWinReleasePS(HDC hdc);
|
---|
32 |
|
---|
33 | ULONG MapOS2ToWin32Y(HWND hwndChild);
|
---|
34 | ULONG MapOS2ToWin32Y(HWND hwndChild, ULONG y);
|
---|
35 | ULONG MapOS2ToWin32Y(HWND hwndChild, ULONG cy, ULONG y);
|
---|
36 | ULONG MapOS2ToWin32Y(PRECTLOS2 rectParent, PRECTLOS2 rectChild, ULONG y);
|
---|
37 | ULONG MapOS2ToWin32Y(PRECTLOS2 rectParent, HWND hwndChild, ULONG y);
|
---|
38 | ULONG MapOS2ToWin32Y(HWND hwndChild, PRECTLOS2 rectChild, ULONG y);
|
---|
39 | BOOL MapOS2ToWin32Rectl(HWND hwndChild, PRECTLOS2 rectChild, PRECT rectWin32);
|
---|
40 | BOOL MapOS2ToWin32Rectl(PRECTLOS2 rectParent, PRECTLOS2 rectChild, PRECT rectWin32);
|
---|
41 | BOOL MapWin32ToOS2Rectl(HWND hwndChild, PRECTLOS2 rectChild, PRECT rectWin32);
|
---|
42 | BOOL MapWin32ToOS2Rectl(PRECTLOS2 rectParent, PRECTLOS2 rectChild, PRECT rectWin32);
|
---|
43 |
|
---|
44 | #endif //__OSLIBGDI_H__
|
---|