- Timestamp:
- Feb 5, 2000, 5:25:00 PM (26 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/dc.cpp
r2582 r2663 1 /* $Id: dc.cpp,v 1.4 1 2000-01-31 22:30:51sandervl Exp $ */1 /* $Id: dc.cpp,v 1.42 2000-02-05 16:24:57 sandervl Exp $ */ 2 2 3 3 /* … … 29 29 #include <limits.h> 30 30 #include "oslibwin.h" 31 #include "dcdata.h"31 #include <dcdata.h> 32 32 33 33 #define INCLUDED_BY_DC … … 70 70 71 71 HWND WIN32API GetDesktopWindow(void); 72 INT WIN32API GetUpdateRgn(HWND, HRGN, BOOL); 72 73 73 74 //****************************************************************************** … … 463 464 } 464 465 } 466 467 //SvL: Get update region for WM_ERASEBACKGROUND handling in the def wndproc 468 GetUpdateRgn(hWnd, wnd->GetUpdateRegion(), FALSE); 465 469 466 470 HWND hwndClient = wnd->getOS2WindowHandle(); … … 884 888 { 885 889 Win32BaseWindow *wnd; 890 891 if(pRect) { 892 dprintf(("RedrawWindow %x (%d,%d)(%d,%d) %x %x", hwnd, pRect->left, pRect->top, pRect->right, pRect->bottom, hrgn, redraw)); 893 } 894 else dprintf(("RedrawWindow %x %x %x %x", hwnd, pRect, hrgn, redraw)); 886 895 887 896 if (redraw & (RDW_FRAME_W | RDW_NOFRAME_W)) -
trunk/src/user32/win32dlg.cpp
r2469 r2663 1 /* $Id: win32dlg.cpp,v 1.4 1 2000-01-18 20:10:52sandervl Exp $ */1 /* $Id: win32dlg.cpp,v 1.42 2000-02-05 16:24:58 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Dialog Code for OS/2 … … 23 23 #include "win32wdesktop.h" 24 24 #include "controls.h" 25 #include "syscolor.h" 25 26 26 27 #define DEFAULT_DLGFONT "9.WarpSans" … … 696 697 RECT rect; 697 698 int rc; 698 /* Since WM_ERASEBKGND may receive either a window dc or a */ 699 /* client dc, the area to be erased has to be retrieved from */ 700 /* the device context. */ 701 rc = GetClipBox( (HDC)wParam, &rect ); 699 700 if (!windowClass || !windowClass->getBackgroundBrush()) return 0; 701 702 // rc = GetClipBox( (HDC)wParam, &rect ); 703 rc = GetRgnBox(hUpdateRegion, &rect); 702 704 if ((rc == SIMPLEREGION) || (rc == COMPLEXREGION)) 703 FillRect( (HDC)wParam, &rect, windowClass->getBackgroundBrush()); 705 { 706 HBRUSH hBrush = windowClass->getBackgroundBrush(); 707 708 if (hBrush <= (HBRUSH)(SYSCOLOR_GetLastColor()+1)) 709 hBrush = GetSysColorBrush(hBrush-1); 710 711 // FillRect( (HDC)wParam, &rect, hBrush); 712 FillRgn((HDC)wParam, hUpdateRegion, hBrush); 713 } 714 704 715 return 1; 705 716 } 717 706 718 case WM_NCDESTROY: 707 719 /* Free dialog heap (if created) */ -
trunk/src/user32/win32wbase.cpp
r2657 r2663 1 /* $Id: win32wbase.cpp,v 1.15 2 2000-02-05 14:08:53sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.153 2000-02-05 16:24:59 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 145 145 ownDC = 0; 146 146 hWindowRegion = 0; 147 hUpdateRegion = CreateRectRgn(0, 0, 0, 0); 147 148 148 149 if(currentProcessId == -1) … … 178 179 } 179 180 180 if (isOwnDC()) 181 releaseOwnDC (ownDC); 181 if(hUpdateRegion) { 182 DeleteObject(hUpdateRegion); 183 hUpdateRegion = 0; 184 } 185 186 if(isOwnDC()) 187 releaseOwnDC(ownDC); 182 188 183 189 if(Win32Hwnd) … … 186 192 if(userWindowLong) 187 193 free(userWindowLong); 194 188 195 if(windowNameA) { 189 196 free(windowNameA); … … 1433 1440 if (!windowClass || !windowClass->getBackgroundBrush()) return 0; 1434 1441 1435 rc = GetClipBox( (HDC)wParam, &rect ); 1442 // rc = GetClipBox( (HDC)wParam, &rect ); 1443 rc = GetRgnBox(hUpdateRegion, &rect); 1436 1444 if ((rc == SIMPLEREGION) || (rc == COMPLEXREGION)) 1437 1445 { 1438 HBRUSH hBrush = windowClass->getBackgroundBrush(); 1439 1440 if (hBrush <= (HBRUSH)(SYSCOLOR_GetLastColor()+1)) hBrush = GetSysColorBrush(hBrush-1); 1441 1442 FillRect( (HDC)wParam, &rect, hBrush); 1446 HBRUSH hBrush = windowClass->getBackgroundBrush(); 1447 1448 if (hBrush <= (HBRUSH)(SYSCOLOR_GetLastColor()+1)) 1449 hBrush = GetSysColorBrush(hBrush-1); 1450 1451 // FillRect( (HDC)wParam, &rect, hBrush); 1452 FillRgn((HDC)wParam, hUpdateRegion, hBrush); 1443 1453 } 1444 1454 … … 2724 2734 return value; 2725 2735 2726 2736 value &= ~(WS_VISIBLE | WS_CHILD); /* Some bits can't be changed this way (WINE) */ 2727 2737 ss.styleOld = getStyle(); 2728 2738 ss.styleNew = value | (ss.styleOld & (WS_VISIBLE | WS_CHILD)); 2729 2739 dprintf(("SetWindowLong GWL_STYLE %x old %x new style %x", getWindowHandle(), ss.styleOld, ss.styleNew)); 2730 2740 SendInternalMessageA(WM_STYLECHANGING,GWL_STYLE,(LPARAM)&ss); 2731 2741 setStyle(ss.styleNew); 2732 2742 SendInternalMessageA(WM_STYLECHANGED,GWL_STYLE,(LPARAM)&ss); 2733 2734 windowClass->getStyle() & CS_SAVEBITS);2743 //// OSLibSetWindowStyle(getOS2FrameWindowHandle(), getStyle(), getExStyle(), 2744 //// windowClass->getStyle() & CS_SAVEBITS); 2735 2745 #ifdef DEBUG 2736 2746 PrintWindowStyle(ss.styleNew, 0); -
trunk/src/user32/win32wbase.h
r2657 r2663 1 /* $Id: win32wbase.h,v 1. 79 2000-02-05 14:08:54sandervl Exp $ */1 /* $Id: win32wbase.h,v 1.80 2000-02-05 16:25:00 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 198 198 void SetWindowRegion(HRGN hRegion) { hWindowRegion = hRegion; }; 199 199 HRGN GetWindowRegion() { return hWindowRegion; }; 200 HRGN GetUpdateRegion() { return hUpdateRegion; }; 200 201 201 202 BOOL ShowWindow(ULONG nCmdShow); … … 341 342 342 343 HRGN hWindowRegion; 344 HRGN hUpdateRegion; 343 345 344 346 DWORD dwThreadId; //id of thread that created this window
Note:
See TracChangeset
for help on using the changeset viewer.