Ignore:
Timestamp:
Jan 21, 2000, 2:30:35 PM (26 years ago)
Author:
sandervl
Message:

Many bugfixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/pmwindow.cpp

    r2486 r2489  
    1 /* $Id: pmwindow.cpp,v 1.80 2000-01-20 21:45:07 sandervl Exp $ */
     1/* $Id: pmwindow.cpp,v 1.81 2000-01-21 13:30:34 sandervl Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    287287
    288288    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
    289309      RestoreOS2TIB();
    290310      return (MRESULT)(CVR_ALIGNLEFT | CVR_ALIGNTOP);
     311#endif
    291312
    292313    case WM_SETFOCUS:
Note: See TracChangeset for help on using the changeset viewer.