- Timestamp:
- Sep 2, 2000, 10:30:11 AM (25 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/dc.cpp
r3888 r4147 1 /* $Id: dc.cpp,v 1. 69 2000-07-22 12:51:59 sandervl Exp $ */1 /* $Id: dc.cpp,v 1.70 2000-09-02 08:30:09 sandervl Exp $ */ 2 2 3 3 /* … … 546 546 //****************************************************************************** 547 547 //****************************************************************************** 548 #ifdef DEBUG 549 #define dprintfRegion(a,b,c) if(DbgEnabledLvl2[DBG_LOCALLOG] == 1) dprintfRegion1(a,b,c) 550 551 void dprintfRegion1(HPS hps, HWND hWnd, HRGN hrgnClip) 552 { 553 RGNRECT rgnRect = {0, 16, 0, RECTDIR_LFRT_TOPBOT}; 554 RECTL rectRegion[16]; 555 APIRET rc; 556 557 dprintf(("dprintfRegion %x %x", hWnd, hps)); 558 rc = GpiQueryRegionRects(hps, hrgnClip, NULL, &rgnRect, &rectRegion[0]); 559 for(int i=0;i<rgnRect.crcReturned;i++) { 560 dprintf(("(%d,%d)(%d,%d)", rectRegion[i].xLeft, rectRegion[i].yBottom, rectRegion[i].xRight, rectRegion[i].yTop)); 561 } 562 } 563 #else 564 #define dprintfRegion(a,b,c) 565 #endif 566 //****************************************************************************** 567 //****************************************************************************** 548 568 HDC WIN32API BeginPaint (HWND hWnd, PPAINTSTRUCT_W lpps) 549 569 { … … 592 612 } 593 613 594 //testest595 if(hwnd == 0x6800000f) {596 lComplexity = 1;597 }598 599 614 if(WinQueryUpdateRect(hwndClient, &rectl) == FALSE) { 600 615 memset(&rectl, 0, sizeof(rectl)); … … 615 630 616 631 //Query update region 632 #if 1 633 HRGN hrgnClip = GpiCreateRegion(pHps->hps, 1, &rectl); 634 #else 617 635 HRGN hrgnClip = GpiCreateRegion(pHps->hps, 1, &rectlClip); 618 636 WinQueryUpdateRegion(hwndClient, hrgnClip); 637 dprintfRegion(pHps->hps, hWnd, hrgnClip); 638 WinQueryVisibleRegion(hwndClient, hrgnClip); 639 dprintfRegion(pHps->hps, hWnd, hrgnClip); 640 WinQueryUpdateRegion(hwndClient, hrgnClip); 641 #endif 619 642 WinValidateRegion(hwndClient, hrgnClip, FALSE); 620 643 -
trunk/src/user32/win32wbase.cpp
r3873 r4147 1 /* $Id: win32wbase.cpp,v 1.20 8 2000-07-20 18:08:13sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.209 2000-09-02 08:30:09 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 1616 1616 if(window && !(window->getClass()->getStyle() & CS_NOCLOSE)) 1617 1617 PostMessageA(getWindowHandle(), WM_SYSCOMMAND, SC_CLOSE, 0); 1618 return 0; 1618 1619 } 1619 1620 … … 2188 2189 RECT oldClientRect = rectClient; 2189 2190 2191 if(getWindowHandle() == 0x6800000a) { 2192 rc = FALSE; 2193 } 2190 2194 if (fuFlags & 2191 2195 ~(SWP_NOSIZE | SWP_NOMOVE | SWP_NOZORDER | -
trunk/src/user32/window.cpp
r3942 r4147 1 /* $Id: window.cpp,v 1.7 2 2000-08-02 20:18:25 birdExp $ */1 /* $Id: window.cpp,v 1.73 2000-09-02 08:30:11 sandervl Exp $ */ 2 2 /* 3 3 * Win32 window apis for OS/2 … … 707 707 BOOL WIN32API IsZoomed(HWND hwnd) 708 708 { 709 dprintf(("USER32: IsZoomed\n")); 710 return O32_IsZoomed(Win32BaseWindow::Win32ToOS2Handle(hwnd)); 709 DWORD style; 710 711 style = GetWindowLongA(hwnd, GWL_STYLE); 712 dprintf(("USER32: IsZoomed %x returned %d", hwnd, ((style & WS_MAXIMIZE) != 0))); 713 714 return (style & WS_MAXIMIZE) != 0; 711 715 } 712 716 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.