Changeset 951 for trunk/dll/mainwnd.c


Ignore:
Timestamp:
Feb 15, 2008, 5:41:19 PM (18 years ago)
Author:
Gregg Young
Message:

Eliminate problem with tree container being resized to nothing or nearly nothing if it is made too large and the main frame is resized; also eliminates the trap on close following the occurence of the above.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/mainwnd.c

    r947 r951  
    36663666      if (swp.y < 0)
    36673667        swp.y = 0;
    3668       if (swp.x + swp.cx > Rectl.xRight - Rectl.xLeft)
    3669         swp.cx = Rectl.xRight - Rectl.xLeft;
     3668      if (swp.x + swp.cx > abs(Rectl.xRight - Rectl.xLeft))
     3669        swp.cx = abs(Rectl.xRight - Rectl.xLeft);
    36703670      WinSetWindowPos(hwndTree, HWND_TOP, swp.x, swp.y, swp.cx, swp.cy,
    36713671                      SWP_MOVE | SWP_SIZE | SWP_SHOW | SWP_RESTORE);
Note: See TracChangeset for help on using the changeset viewer.