Ignore:
Timestamp:
Jan 5, 2000, 10:25:08 PM (26 years ago)
Author:
cbratschi
Message:

single frame works now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/new/win32wbasepos.cpp

    r2292 r2335  
    1 /* $Id: win32wbasepos.cpp,v 1.2 2000-01-02 19:30:45 cbratschi Exp $ */
     1/* $Id: win32wbasepos.cpp,v 1.3 2000-01-05 21:25:08 cbratschi Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2 (nonclient/position methods)
     
    172172   result = SendInternalMessageA(WM_NCCALCSIZE, calcValidRect,
    173173                         (LPARAM)&params );
    174    *newClientRect = params.rgrc[0];
     174   if (calcValidRect)
     175   {
     176      /* If the application send back garbage, ignore it */
     177      if (params.rgrc[2].left <= params.rgrc[2].right && params.rgrc[2].top <= params.rgrc[2].bottom)
     178         *newClientRect = params.rgrc[2];
     179      else
     180        SetRectEmpty(newClientRect);
     181   }
     182
    175183   return result;
    176184}
Note: See TracChangeset for help on using the changeset viewer.