Changeset 2489 for trunk/src/user32/pmwindow.cpp
- Timestamp:
- Jan 21, 2000, 2:30:35 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/pmwindow.cpp
r2486 r2489 1 /* $Id: pmwindow.cpp,v 1.8 0 2000-01-20 21:45:07sandervl Exp $ */1 /* $Id: pmwindow.cpp,v 1.81 2000-01-21 13:30:34 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Managment Code for OS/2 … … 287 287 288 288 case WM_CALCVALIDRECTS: 289 #if 1 290 { 291 PRECTL oldRect = (PRECTL)mp1,newRect = oldRect+1; 292 UINT res = CVR_ALIGNLEFT | CVR_ALIGNTOP; 293 294 //CB: todo: use WM_NCCALCSIZE result 295 if (win32wnd->getWindowClass()) 296 { 297 DWORD dwStyle = win32wnd->getWindowClass()->getClassLongA(GCL_STYLE_W); 298 299 if ((dwStyle & CS_HREDRAW_W) && (newRect->xRight-newRect->xLeft != oldRect->xRight-oldRect->xLeft)) 300 res |= CVR_REDRAW; 301 else if ((dwStyle & CS_VREDRAW_W) && (newRect->yTop-newRect->yBottom != oldRect->yTop-oldRect->yBottom)) 302 res |= CVR_REDRAW; 303 } else res |= CVR_REDRAW; 304 305 RestoreOS2TIB(); 306 return (MRESULT)res; 307 } 308 #else 289 309 RestoreOS2TIB(); 290 310 return (MRESULT)(CVR_ALIGNLEFT | CVR_ALIGNTOP); 311 #endif 291 312 292 313 case WM_SETFOCUS:
Note:
See TracChangeset
for help on using the changeset viewer.