Changeset 2425 for trunk/src/user32/new/pmwindow.cpp
- Timestamp:
- Jan 12, 2000, 11:07:28 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/new/pmwindow.cpp
r2422 r2425 1 /* $Id: pmwindow.cpp,v 1.3 8 2000-01-12 19:43:58 sandervlExp $ */1 /* $Id: pmwindow.cpp,v 1.39 2000-01-12 22:07:28 cbratschi Exp $ */ 2 2 /* 3 3 * Win32 Window Managment Code for OS/2 … … 295 295 } 296 296 297 #if 0298 297 case WM_CALCVALIDRECTS: 299 {300 PRECTL oldRect = (PRECTL)mp1,newRect = oldRect+1;301 UINT res = CVR_ALIGNLEFT | CVR_ALIGNTOP;302 303 //CB: todo: use WM_NCCALCSIZE result304 if (win32wnd->getWindowClass())305 {306 DWORD dwStyle = win32wnd->getWindowClass()->getClassLongA(GCL_STYLE_W);307 308 if ((dwStyle & CS_HREDRAW_W) && (newRect->xRight-newRect->xLeft != oldRect->xRight-oldRect->xLeft))309 res |= CVR_REDRAW;310 else if ((dwStyle & CS_VREDRAW_W) && (newRect->yTop-newRect->yBottom != oldRect->yTop-oldRect->yBottom))311 res |= CVR_REDRAW;312 } else res |= CVR_REDRAW;313 314 298 RestoreOS2TIB(); 315 WinDefWindowProc(hwnd,msg,mp1,mp2); 316 RestoreOS2TIB(); 317 return (MRESULT)res; 318 } 319 #endif 299 return (MRESULT)(CVR_ALIGNLEFT | CVR_ALIGNTOP); 320 300 321 301 case WM_SETFOCUS: … … 440 420 { 441 421 dprintf(("OS2: WM_ERASEBACKGROUND %x", win32wnd->getWindowHandle())); 442 break; 422 RestoreOS2TIB(); 423 return (MRESULT)FALSE; 443 424 } 444 425
Note:
See TracChangeset
for help on using the changeset viewer.