Ignore:
Timestamp:
Jul 24, 1999, 4:01:45 PM (26 years ago)
Author:
sandervl
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/new/window.cpp

    r378 r385  
    1 /* $Id: window.cpp,v 1.8 1999-07-23 19:09:25 cbratschi Exp $ */
     1/* $Id: window.cpp,v 1.9 1999-07-24 14:01:45 sandervl Exp $ */
    22/*
    33 * Win32 window apis for OS/2
     
    2020#include <win32wnd.h>
    2121#include <oslibwin.h>
     22#include <oslibgdi.h>
    2223#include "user32.h"
    2324#include "icon.h"
     
    588589//******************************************************************************
    589590//******************************************************************************
    590 BOOL WIN32API GetClientRect( HWND arg1, PRECT  arg2)
    591 {
    592 #ifdef DEBUG
    593     WriteLog("USER32:  GetClientRect of %X\n", arg1);
    594 #endif
    595     arg1 = Win32Window::Win32ToOS2Handle(arg1);
    596     return O32_GetClientRect(arg1, arg2);
     591BOOL WIN32API GetClientRect( HWND hwnd, PRECT pRect)
     592{
     593#ifdef DEBUG
     594    WriteLog("USER32:  GetClientRect of %X\n", hwnd);
     595#endif
     596    hwnd = Win32Window::Win32ToOS2Handle(hwnd);
     597    return OSLibWinQueryWindowRect(hwnd, pRect);
     598//    return O32_GetClientRect(hwnd, arg2);
    597599}
    598600//******************************************************************************
     
    860862    if (!lpRect) return FALSE;
    861863
    862     return OSLibWinQueryUpdateRect(Win32Window::Win32ToOS2Handle(hwnd), (PVOID)&lpRect);
     864    return OSLibWinQueryUpdateRect(Win32Window::Win32ToOS2Handle(hwnd), lpRect);
     865}
     866//******************************************************************************
     867//******************************************************************************
     868BOOL WIN32API InvalidateRect(HWND hWnd, const RECT *lpRect, BOOL bErase)
     869{
     870#ifdef DEBUG
     871    if(lpRect)
     872         WriteLog("USER32:  InvalidateRect for window %X (%d,%d)(%d,%d) %d\n", hWnd, lpRect->left, lpRect->top, lpRect->right, lpRect->bottom, bErase);
     873    else WriteLog("USER32:  InvalidateRect for window %X NULL, %d\n", hWnd, bErase);
     874#endif
     875
     876    //CB: bErase no quite the same
     877    hWnd = Win32Window::Win32ToOS2Handle(hWnd);
     878    if (lpRect)
     879    {
     880         return OSLibWinInvalidateRect(hWnd, (PRECT)lpRect, bErase);
     881    }
     882    else return OSLibWinInvalidateRect(hWnd,NULL,bErase);
    863883}
    864884//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.