Changeset 313 for trunk/src/helpers/cctl_splitwin.c
- Timestamp:
- Apr 14, 2006, 1:12:56 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/cctl_splitwin.c
r229 r313 15 15 16 16 /* 17 * Copyright (C) 1997-200 0Ulrich Mller.17 * Copyright (C) 1997-2006 Ulrich Mller. 18 18 * This file is part of the "XWorkplace helpers" source package. 19 19 * This is free software; you can redistribute it and/or modify … … 274 274 * 275 275 *@@added V0.9.1 (2000-02-05) [umoeller] 276 *@@changed XWP V1.0.5 (2006-04-13) [pr]: Fix horrid rounding errors 276 277 */ 277 278 … … 359 360 WinQueryWindowRect(pData->sbcd.hwndParentAndOwner, 360 361 &rclClient); 361 pData->sbcd.lPos = ulNewYPos 362 * 100 / (rclClient.yTop - rclClient.yBottom); 362 // XWP V1.0.5 (2006-04-13) [pr]: Fix horrid rounding errors 363 pData->sbcd.lPos = (ulNewYPos * 200 + (rclClient.yTop - rclClient.yBottom)) 364 / ((rclClient.yTop - rclClient.yBottom) * 2); 363 365 } 364 366 else … … 393 395 WinQueryWindowRect(pData->sbcd.hwndParentAndOwner, 394 396 &rclClient); 395 pData->sbcd.lPos = ulNewXPos 396 * 100 / (rclClient.xRight - rclClient.xLeft); 397 // XWP V1.0.5 (2006-04-13) [pr]: Fix horrid rounding errors 398 pData->sbcd.lPos = (ulNewXPos * 200 + (rclClient.xRight - rclClient.xLeft)) 399 / ((rclClient.xRight - rclClient.xLeft) * 2); 397 400 } 398 401 else … … 824 827 *@@added V0.9.0 [umoeller] 825 828 *@@changed V1.0.0 (2002-08-24) [umoeller]: added support for SBCF_3DEXPLORERSTYLE 829 *@@changed XWP V1.0.5 (2006-04-13) [pr]: Fix rounding errors and repaint problems @@fixes 228 826 830 */ 827 831 … … 861 865 if (psbcd->ulCreateFlags & SBCF_PERCENTAGE) 862 866 // take height of client and apply percentage 863 rclBar.yBottom = (rclSplit.yTop - rclSplit.yBottom) 864 * psbcd->lPos 867 // XWP V1.0.5 (2006-04-13) [pr]: Fix horrid rounding errors 868 rclBar.yBottom = ((rclSplit.yTop - rclSplit.yBottom) 869 * psbcd->lPos + 50) 865 870 / 100; 866 871 else … … 885 890 if (psbcd->ulCreateFlags & SBCF_PERCENTAGE) 886 891 // take width of client and apply percentage 887 rclBar.xLeft = (rclSplit.xRight - rclSplit.xLeft) 888 * psbcd->lPos 892 // XWP V1.0.5 (2006-04-13) [pr]: Fix horrid rounding errors 893 rclBar.xLeft = ((rclSplit.xRight - rclSplit.xLeft) 894 * psbcd->lPos + 50) 889 895 / 100; 890 896 else … … 985 991 NULL, // all 986 992 FALSE); // don't repaint children 993 // XWP V1.0.5 (2006-04-13) [pr]: repaint right/bottom frame @@fixes 228 994 WinInvalidateRect(psbd->hwndLinked2, 995 NULL, 996 TRUE); 987 997 } 988 998
Note:
See TracChangeset
for help on using the changeset viewer.