- Timestamp:
- Dec 7, 1999, 1:26:59 PM (26 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/dc.cpp
r1965 r2006 1 /* $Id: dc.cpp,v 1.2 4 1999-12-04 00:04:19sandervl Exp $ */1 /* $Id: dc.cpp,v 1.25 1999-12-07 12:26:58 sandervl Exp $ */ 2 2 3 3 /* … … 516 516 // WinSendMsg( hwnd, /* WM_DRAW */ 0x20D, (MPARAM)hps, MPVOID ); 517 517 //CB: subclassed window haven't got a frame 518 if (!wnd->isSubclassedOS2Wnd()) selectClientArea(wnd, pHps, &rect);518 // if (!wnd->isSubclassedOS2Wnd()) selectClientArea(wnd, pHps, &rect); 519 519 // } 520 520 … … 562 562 if (!wnd) goto exit; 563 563 564 if 564 if(wnd->isOwnDC()) 565 565 { 566 566 pDCData pHps = (pDCData)GpiQueryDCData((HPS)pPaint->hdc); … … 568 568 { 569 569 removeClientArea (pHps); 570 570 WinEndPaint (pHps->hps); 571 571 } 572 572 } -
trunk/src/user32/win32wbase.cpp
r1983 r2006 1 /* $Id: win32wbase.cpp,v 1.10 5 1999-12-05 16:37:58 sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.106 1999-12-07 12:26:58 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 465 465 if (cs->dwExStyle & WS_EX_DLGMODALFRAME) dwStyle &= ~WS_THICKFRAME; 466 466 467 //TODO?468 #if 0469 /* Get class or window DC if needed */470 if (classPtr->style & CS_OWNDC) dce = DCE_AllocDCE(hwnd,DCE_WINDOW_DC);471 else if (classPtr->style & CS_CLASSDC) wndPtr->dce = classPtr->dce;472 else wndPtr->dce = NULL;473 #endif474 475 467 if (cs->style & WS_HSCROLL) 476 468 { … … 633 625 SetIcon(windowClass->getIcon()); 634 626 627 /* Get class or window DC if needed */ 628 if(windowClass->getStyle() & CS_OWNDC) { 629 dprintf(("Class with CS_OWNDC style")); 630 ownDC = GetWindowDC(getWindowHandle()); 631 } 632 else 633 if (windowClass->getStyle() & CS_PARENTDC) { 634 dprintf(("ERROR: Class with CS_PARENTDC style -> NOT IMPLEMENTED!")); 635 ownDC = 0; 636 } 637 else 638 if (windowClass->getStyle() & CS_CLASSDC) { 639 dprintf(("ERROR: Class with CS_CLASSDC style -> NOT IMPLEMENTED!")); 640 ownDC = 0; 641 } 635 642 /* Set the window menu */ 636 643 if ((dwStyle & (WS_CAPTION | WS_CHILD)) == WS_CAPTION ) -
trunk/src/user32/win32wbase.h
r1983 r2006 1 /* $Id: win32wbase.h,v 1. 49 1999-12-05 16:37:59 sandervl Exp $ */1 /* $Id: win32wbase.h,v 1.50 1999-12-07 12:26:59 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); } 366 // BOOL isOwnDC() { return (windowClass && windowClass->getStyle() & CS_OWNDC_W); } 367 BOOL isOwnDC() { return FALSE; } 367 368 HDC getOwnDC() { return ownDC; } 368 369 void setOwnDC(HDC hdc) { ownDC = hdc; }
Note:
See TracChangeset
for help on using the changeset viewer.