Ignore:
Timestamp:
Jul 19, 1999, 8:40:44 PM (26 years ago)
Author:
sandervl
Message:

Point/Rectangle bug fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/new/oslibgdi.h

    r325 r340  
    1 /* $Id: oslibgdi.h,v 1.1 1999-07-18 10:39:51 sandervl Exp $ */
     1/* $Id: oslibgdi.h,v 1.2 1999-07-19 18:40:43 sandervl Exp $ */
    22/*
    33 * Window GDI wrapper functions for OS/2
     
    1616#include "win32type.h"
    1717#endif
     18#include <win32wnd.h>
    1819
    1920typedef struct
     
    2526} RECTLOS2, *PRECTLOS2;
    2627
    27 HDC   OSLibWinBeginPaint(HWND hwnd, PVOID pRectl);
     28typedef struct
     29{
     30    LONG  x;
     31    LONG  y;
     32} OSLIBPOINT;
     33
     34HDC   OSLibWinBeginPaint(HWND hwnd, RECT *pRectl);
    2835BOOL  OSLibWinEndPaint(HDC hdc);
    2936
     
    3138BOOL  OSLibWinReleasePS(HDC hdc);
    3239
    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);
     40//******************************************************************************
     41//Map win32 y coordinate (in window coordinates) to OS/2 y coord. (in window coordinates)
     42//******************************************************************************
     43inline ULONG MapOS2ToWin32Y(Win32Window *window, ULONG y)
     44{
     45    return window->getWindowHeight() - y;
     46}
     47
     48ULONG MapOS2ToWin32Y(HWND hwndParent, ULONG cy, ULONG y);
     49BOOL  MapOS2ToWin32Point(HWND hwndParent, HWND hwndChild, OSLIBPOINT *point);
     50
     51BOOL  MapOS2ToWin32Rectl(PRECTLOS2 rectOS2, PRECT rectWin32);
     52BOOL  MapWin32ToOS2Rectl(PRECT rectWin32, PRECTLOS2 rectOS2);
    4353
    4454#endif //__OSLIBGDI_H__
Note: See TracChangeset for help on using the changeset viewer.