Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/mainwnd.c
r953 r954 51 51 05 Feb 08 SHL Restore no-prescan drives if restoring named state 52 52 14 Feb 08 SHL Rework to support settings menu conditional cascade 53 15 Feb 08 SHL Rework ResizeChildren to honor fNoTreeGap and resize drive tree better 53 54 54 55 ***********************************************************************/ … … 3662 3663 WinQueryWindowPos(hwndTree, &swp); 3663 3664 if (!(swp.fl & (SWP_MAXIMIZE | SWP_HIDE | SWP_MINIMIZE))) { 3664 if (swp.y + swp.cy < Rectl.yTop - Rectl.yBottom) 3665 swp.cy = (Rectl.yTop - Rectl.yBottom) - swp.y; 3665 3666 if (!fNoTreeGap) { 3667 INT height = WinQuerySysValue(HWND_DESKTOP, SV_CYICON) * 2; 3668 if (swp.y < height) 3669 swp.y = height; // Force bottom to position 3670 } 3671 else 3672 swp.y = 0; // Force bottom to position 3673 3674 swp.cy = (Rectl.yTop - Rectl.yBottom) - swp.y; 3675 if (swp.cy < 0) 3676 swp.cy = 0; 3677 3666 3678 if (swp.x != 0) 3667 swp.x = 0; 3668 if (swp.y < 0) 3669 swp.y = 0; 3670 if (swp.x + swp.cx > abs(Rectl.xRight - Rectl.xLeft)) 3671 swp.cx = abs(Rectl.xRight - Rectl.xLeft); 3679 swp.x = 0; // Left align 3680 3681 // AdjustSizeOfClient can return bogus xRight values - fixme someday 3682 if (Rectl.xRight >= Rectl.xLeft) { 3683 if (swp.x + swp.cx > Rectl.xRight - Rectl.xLeft) 3684 swp.cx = Rectl.xRight - Rectl.xLeft; 3685 } 3672 3686 WinSetWindowPos(hwndTree, HWND_TOP, swp.x, swp.y, swp.cx, swp.cy, 3673 3687 SWP_MOVE | SWP_SIZE | SWP_SHOW | SWP_RESTORE); -
trunk/dll/treecnr.c
r953 r954 45 45 10 Jan 08 SHL Sync with CfgDlgProc mods 46 46 15 Feb 08 SHL Sync with settings menu rework 47 15 Feb 08 SHL Avoid death if tree container 0 width 47 48 48 49 ***********************************************************************/ … … 2828 2829 if (!(swp.fl & (SWP_MINIMIZE | SWP_MAXIMIZE | SWP_HIDE))) { 2829 2830 WinQueryWindowPos(dcd->hwndParent, &swpP); 2830 ratio = (swpP.cx * 100) / swp.cx; 2831 if (ratio > 0) 2832 PrfWriteProfileData(fmprof, appname, "TreeWindowRatio", 2833 &ratio, sizeof(INT)); 2831 if (swp.cx) { 2832 ratio = (swpP.cx * 100) / swp.cx; 2833 if (ratio > 0) 2834 PrfWriteProfileData(fmprof, appname, "TreeWindowRatio", 2835 &ratio, sizeof(INT)); 2836 } 2834 2837 } 2835 2838 }
Note:
See TracChangeset
for help on using the changeset viewer.
