Changeset 2016 for trunk/src


Ignore:
Timestamp:
Dec 7, 1999, 9:43:40 PM (26 years ago)
Author:
sandervl
Message:

Owndc changes

Location:
trunk/src/user32
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/dc.cpp

    r2010 r2016  
    1 /* $Id: dc.cpp,v 1.26 1999-12-07 18:19:47 sandervl Exp $ */
     1/* $Id: dc.cpp,v 1.27 1999-12-07 20:43:39 sandervl Exp $ */
    22
    33/*
     
    343343INT revertDy (Win32BaseWindow *wnd, INT dy)
    344344{
     345   //SvL: Hack for memory.exe (doesn't get repainted properly otherwise)
     346//   if (wnd->isOwnDC() && wnd->getOwnDC())
    345347   if (wnd->isOwnDC())
    346348   {
     
    438440   if ((hwnd != HWND_DESKTOP) && wnd->isOwnDC())
    439441   {
    440       hPS_ownDC = wnd->getOwnDC();
    441       pHps = (pDCData)GpiQueryDCData(hPS_ownDC);
    442       if (!pHps)
    443       {
    444          O32_SetLastError (ERROR_INVALID_PARAMETER);
    445          return (HDC)NULLHANDLE;
    446       }
     442        hPS_ownDC = wnd->getOwnDC();
     443        //SvL: Hack for memory.exe (doesn't get repainted properly otherwise)
     444        if(hPS_ownDC) {
     445                pHps = (pDCData)GpiQueryDCData(hPS_ownDC);
     446                if (!pHps)
     447                {
     448                        O32_SetLastError (ERROR_INVALID_PARAMETER);
     449                        return (HDC)NULLHANDLE;
     450                }
     451        }
    447452   }
    448453
     
    499504   if (!wnd) goto exit;
    500505
    501    if(wnd->isOwnDC())
     506   //SvL: Hack for memory.exe (doesn't get repainted properly otherwise)
     507   if(wnd->isOwnDC() && wnd->getOwnDC())
     508//   if(wnd->isOwnDC())
    502509   {
    503510       pDCData pHps = (pDCData)GpiQueryDCData((HPS)pPaint->hdc);
     
    535542   if (updateRegionExists)
    536543   {
     544      //SvL: Hack for memory.exe (doesn't get repainted properly otherwise)
     545//      if (wnd->isOwnDC() && wnd->getOwnDC())
    537546      if (wnd->isOwnDC())
    538547      {
     
    612621   dprintf (("User32: GetDCEx hwnd %x (%x %x) -> wnd %x", hwnd, hrgn, flags, wnd));
    613622
    614    isWindowOwnDC = (((hWindow == HWND_DESKTOP) ? FALSE : wnd->isOwnDC())
     623   //SvL: Hack for memory.exe (doesn't get repainted properly otherwise)
     624//   isWindowOwnDC = (((hWindow == HWND_DESKTOP) ? FALSE : (wnd->isOwnDC() && wnd->getOwnDC()))
     625   isWindowOwnDC = (((hWindow == HWND_DESKTOP) ? FALSE : (wnd->isOwnDC()))
    615626                 && !(flags & DCX_CACHE_W));
    616627
     
    747758   {
    748759      Win32BaseWindow *wnd = Win32BaseWindow::GetWindowFromHandle (hwnd);
     760      //SvL: Hack for memory.exe (doesn't get repainted properly otherwise)
     761//      isOwnDC = wnd->isOwnDC() && wnd->getOwnDC();
    749762      isOwnDC = wnd->isOwnDC();
    750763   }
  • trunk/src/user32/win32wbase.cpp

    r2006 r2016  
    1 /* $Id: win32wbase.cpp,v 1.106 1999-12-07 12:26:58 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.107 1999-12-07 20:43:39 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    628628  if(windowClass->getStyle() & CS_OWNDC) {
    629629        dprintf(("Class with CS_OWNDC style"));
    630         ownDC = GetWindowDC(getWindowHandle());
     630//      ownDC = GetWindowDC(getWindowHandle());
    631631  }
    632632  else
  • trunk/src/user32/win32wbase.h

    r2006 r2016  
    1 /* $Id: win32wbase.h,v 1.50 1999-12-07 12:26:59 sandervl Exp $ */
     1/* $Id: win32wbase.h,v 1.51 1999-12-07 20:43:40 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    364364         fakeOpen32WinBaseClass fakeWinBase;
    365365
    366 //         BOOL   isOwnDC() { return (windowClass && windowClass->getStyle() & CS_OWNDC_W); }
    367          BOOL   isOwnDC() { return FALSE; }
     366         BOOL   isOwnDC() { return (windowClass && windowClass->getStyle() & CS_OWNDC_W); }
    368367         HDC    getOwnDC() { return ownDC; }
    369368         void   setOwnDC(HDC hdc) { ownDC = hdc; }
Note: See TracChangeset for help on using the changeset viewer.