Changeset 378 for trunk/src


Ignore:
Timestamp:
Jul 23, 1999, 9:09:26 PM (26 years ago)
Author:
cbratschi
Message:

BeginPaint() fix

Location:
trunk/src/user32/new
Files:
2 edited

Legend:

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

    r332 r378  
    1 /* $Id: window.cpp,v 1.7 1999-07-18 18:04:30 sandervl Exp $ */
     1/* $Id: window.cpp,v 1.8 1999-07-23 19:09:25 cbratschi Exp $ */
    22/*
    33 * Win32 window apis for OS/2
     
    178178    window = Win32Window::GetWindowFromHandle(hwnd);
    179179    if(!window) {
    180         dprintf(("DestroyWindow, window %x not found", hwnd));
    181         return 0;
     180        dprintf(("DestroyWindow, window %x not found", hwnd));
     181        return 0;
    182182    }
    183183    dprintf(("DestroyWindow %x", hwnd));
     
    192192    window = Win32Window::GetWindowFromHandle(hwnd);
    193193    if(!window) {
    194         dprintf(("SetActiveWindow, window %x not found", hwnd));
    195         return 0;
     194        dprintf(("SetActiveWindow, window %x not found", hwnd));
     195        return 0;
    196196    }
    197197    dprintf(("SetActiveWindow %x", hwnd));
     
    206206    window = Win32Window::GetWindowFromHandle(hwnd);
    207207    if(!window) {
    208         dprintf(("GetParent, window %x not found", hwnd));
    209         return 0;
     208        dprintf(("GetParent, window %x not found", hwnd));
     209        return 0;
    210210    }
    211211    dprintf(("GetParent %x", hwnd));
     
    220220    window = Win32Window::GetWindowFromHandle(hwndChild);
    221221    if(!window) {
    222         dprintf(("SetParent, window %x not found", hwndChild));
    223         return 0;
     222        dprintf(("SetParent, window %x not found", hwndChild));
     223        return 0;
    224224    }
    225225    dprintf(("SetParent %x %x", hwndChild, hwndNewParent));
     
    234234    window = Win32Window::GetWindowFromHandle(hwnd);
    235235    if(!window) {
    236         dprintf(("IsChild, window %x not found", hwnd));
    237         return 0;
     236        dprintf(("IsChild, window %x not found", hwnd));
     237        return 0;
    238238    }
    239239    dprintf(("IsChild %x %x", hwndParent, hwnd));
     
    593593    WriteLog("USER32:  GetClientRect of %X\n", arg1);
    594594#endif
    595 
     595    arg1 = Win32Window::Win32ToOS2Handle(arg1);
    596596    return O32_GetClientRect(arg1, arg2);
    597597}
  • trunk/src/user32/new/wingdi.cpp

    r340 r378  
    1 /* $Id: wingdi.cpp,v 1.4 1999-07-19 18:40:44 sandervl Exp $ */
     1/* $Id: wingdi.cpp,v 1.5 1999-07-23 19:09:26 cbratschi Exp $ */
    22/*
    33 * Win32 Window graphics apis for OS/2
     
    3030    }
    3131    dprintf(("BeginPaint %X\n", hwnd));
    32     lps->hdc = OSLibWinBeginPaint(window->getOS2WindowHandle(), &lps->rcPaint);
     32    return O32_BeginPaint(window->getOS2WindowHandle(),lps);
     33    //CB: conflict with Open32 mechanism
     34    //lps->hdc = OSLibWinBeginPaint(window->getOS2WindowHandle(), &lps->rcPaint);
    3335
    3436    return lps->hdc;
     
    3941{
    4042    dprintf(("EndPaint %x\n", hwnd));
    41     return OSLibWinEndPaint(lps->hdc);
     43    return O32_EndPaint(hwnd,lps);
     44    //CB: dito
     45    //return OSLibWinEndPaint(lps->hdc);
    4246}
    4347//******************************************************************************
     
    5458   }
    5559   dprintf(("GetDC %x", hwnd));
    56    return OSLibWinGetPS(window->getOS2WindowHandle());
     60   return O32_GetDC(window->getOS2WindowHandle());
     61   //return OSLibWinGetPS(window->getOS2WindowHandle());
    5762}
    5863//******************************************************************************
     
    7075int WIN32API ReleaseDC(HWND hwnd, HDC hdc)
    7176{
    72     return OSLibWinReleasePS(hdc);
     77    return O32_ReleaseDC(hwnd,hdc);
     78    //return OSLibWinReleasePS(hdc);
    7379}
    7480//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.