- Timestamp:
- Dec 7, 1999, 9:43:40 PM (26 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/dc.cpp
r2010 r2016 1 /* $Id: dc.cpp,v 1.2 6 1999-12-07 18:19:47sandervl Exp $ */1 /* $Id: dc.cpp,v 1.27 1999-12-07 20:43:39 sandervl Exp $ */ 2 2 3 3 /* … … 343 343 INT revertDy (Win32BaseWindow *wnd, INT dy) 344 344 { 345 //SvL: Hack for memory.exe (doesn't get repainted properly otherwise) 346 // if (wnd->isOwnDC() && wnd->getOwnDC()) 345 347 if (wnd->isOwnDC()) 346 348 { … … 438 440 if ((hwnd != HWND_DESKTOP) && wnd->isOwnDC()) 439 441 { 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 } 447 452 } 448 453 … … 499 504 if (!wnd) goto exit; 500 505 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()) 502 509 { 503 510 pDCData pHps = (pDCData)GpiQueryDCData((HPS)pPaint->hdc); … … 535 542 if (updateRegionExists) 536 543 { 544 //SvL: Hack for memory.exe (doesn't get repainted properly otherwise) 545 // if (wnd->isOwnDC() && wnd->getOwnDC()) 537 546 if (wnd->isOwnDC()) 538 547 { … … 612 621 dprintf (("User32: GetDCEx hwnd %x (%x %x) -> wnd %x", hwnd, hrgn, flags, wnd)); 613 622 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())) 615 626 && !(flags & DCX_CACHE_W)); 616 627 … … 747 758 { 748 759 Win32BaseWindow *wnd = Win32BaseWindow::GetWindowFromHandle (hwnd); 760 //SvL: Hack for memory.exe (doesn't get repainted properly otherwise) 761 // isOwnDC = wnd->isOwnDC() && wnd->getOwnDC(); 749 762 isOwnDC = wnd->isOwnDC(); 750 763 } -
trunk/src/user32/win32wbase.cpp
r2006 r2016 1 /* $Id: win32wbase.cpp,v 1.10 6 1999-12-07 12:26:58sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.107 1999-12-07 20:43:39 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 628 628 if(windowClass->getStyle() & CS_OWNDC) { 629 629 dprintf(("Class with CS_OWNDC style")); 630 ownDC = GetWindowDC(getWindowHandle());630 // ownDC = GetWindowDC(getWindowHandle()); 631 631 } 632 632 else -
trunk/src/user32/win32wbase.h
r2006 r2016 1 /* $Id: win32wbase.h,v 1.5 0 1999-12-07 12:26:59sandervl Exp $ */1 /* $Id: win32wbase.h,v 1.51 1999-12-07 20:43:40 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 364 364 fakeOpen32WinBaseClass fakeWinBase; 365 365 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); } 368 367 HDC getOwnDC() { return ownDC; } 369 368 void setOwnDC(HDC hdc) { ownDC = hdc; }
Note:
See TracChangeset
for help on using the changeset viewer.