- Timestamp:
- Aug 22, 1999, 10:30:53 AM (26 years ago)
- Location:
- trunk/src/user32/new
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/new/pmwindow.cpp
r509 r614 1 /* $Id: pmwindow.cpp,v 1.1 8 1999-08-16 15:55:28 dengertExp $ */1 /* $Id: pmwindow.cpp,v 1.19 1999-08-22 08:30:52 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Managment Code for OS/2 … … 210 210 211 211 dprintf(("OS2: WM_ERASEBACKGROUND %x", hwnd)); 212 hps = WinGetPS(hwnd); 213 if(!win32wnd->MsgEraseBackGround((ULONG)hps)) 212 if(!win32wnd->MsgEraseBackGround()) 214 213 { 215 214 /* … … 217 216 * in SYSCLR_WINDOW. 218 217 */ 219 WinReleasePS(hps);220 218 return (MRESULT)( TRUE ); 221 219 } 222 WinReleasePS(hps);223 220 return (MRESULT) FALSE; 224 221 } -
trunk/src/user32/new/win32class.h
r345 r614 1 /* $Id: win32class.h,v 1. 3 1999-07-20 15:46:53sandervl Exp $ */1 /* $Id: win32class.h,v 1.4 1999-08-22 08:30:52 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Class Managment Code for OS/2 … … 45 45 HICON getIcon() { return hIcon; }; 46 46 47 HBRUSH getBackgroundBrush() { return backgroundBrush; }; 48 47 49 void setMenuName(LPSTR newMenuName); 48 50 -
trunk/src/user32/new/win32wnd.cpp
r601 r614 1 /* $Id: win32wnd.cpp,v 1.2 6 1999-08-20 20:09:51sandervl Exp $ */1 /* $Id: win32wnd.cpp,v 1.27 1999-08-22 08:30:52 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Code for OS/2 … … 924 924 } 925 925 //****************************************************************************** 926 //****************************************************************************** 927 ULONG Win32Window::MsgEraseBackGround(ULONG hps) 926 //TODO: Is the clipper region of the window DC equal to the invalidated rectangle? 927 // (or are we simply erasing too much here) 928 //****************************************************************************** 929 ULONG Win32Window::MsgEraseBackGround() 928 930 { 929 931 if(isIcon) { 930 return SendInternalMessageA(WM_ICONERASEBKGND, hps, 0);931 } 932 else return SendInternalMessageA(WM_ERASEBKGND, hps, 0);932 return SendInternalMessageA(WM_ICONERASEBKGND, GetDC(getWindowHandle()), 0); 933 } 934 else return SendInternalMessageA(WM_ERASEBKGND, GetDC(getWindowHandle()), 0); 933 935 } 934 936 //****************************************************************************** … … 1033 1035 case WM_ERASEBKGND: 1034 1036 case WM_ICONERASEBKGND: 1035 return 0; 1037 { 1038 RECT rect; 1039 1040 if (!windowClass->getBackgroundBrush()) return 0; 1041 1042 /* Since WM_ERASEBKGND may receive either a window dc or a */ 1043 /* client dc, the area to be erased has to be retrieved from */ 1044 /* the device context. */ 1045 GetClipBox( (HDC)wParam, &rect ); 1046 1047 FillRect( (HDC)wParam, &rect, windowClass->getBackgroundBrush()); 1048 1049 return 1; 1050 } 1036 1051 1037 1052 case WM_NCLBUTTONDOWN: -
trunk/src/user32/new/win32wnd.h
r508 r614 1 /* $Id: win32wnd.h,v 1.2 2 1999-08-16 15:53:04 dengertExp $ */1 /* $Id: win32wnd.h,v 1.23 1999-08-22 08:30:53 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Code for OS/2 … … 74 74 ULONG MsgMouseMove(ULONG keystate, ULONG x, ULONG y); 75 75 ULONG MsgPaint(ULONG tmp1, ULONG tmp2); 76 ULONG MsgEraseBackGround( ULONG hps);76 ULONG MsgEraseBackGround(); 77 77 ULONG MsgSetText(LPSTR lpsz, LONG cch); 78 78 ULONG MsgGetTextLength();
Note:
See TracChangeset
for help on using the changeset viewer.