diff options
author | Steve Northover <steve> | 2002-09-23 18:47:02 +0000 |
---|---|---|
committer | Steve Northover <steve> | 2002-09-23 18:47:02 +0000 |
commit | 2f464c3206a22a3c3eea6820856c85de025ec168 (patch) | |
tree | f9b7773da59de75f24d0d0932d940372d60dcd74 | |
parent | d4db5a60f8d32fe4e3e76d2cffe44bdcf5761769 (diff) | |
download | eclipse.platform.swt-2f464c3206a22a3c3eea6820856c85de025ec168.tar.gz eclipse.platform.swt-2f464c3206a22a3c3eea6820856c85de025ec168.tar.xz eclipse.platform.swt-2f464c3206a22a3c3eea6820856c85de025ec168.zip |
23864
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/CoolBar.java | 2 | ||||
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/CoolItem.java | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/CoolBar.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/CoolBar.java index 13bcbd26dd..fbac6a6190 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/CoolBar.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/CoolBar.java @@ -485,7 +485,7 @@ public Point [] getItemSizes () { for (int i=0; i<count; i++) {
RECT rect = new RECT ();
OS.SendMessage (handle, OS.RB_GETRECT, i, rect);
- sizes [i] = new Point (rect.right - rect.left, rect.bottom - rect.top);
+ sizes [i] = new Point (rect.right - rect.left + 2, rect.bottom - rect.top);
}
return sizes;
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/CoolItem.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/CoolItem.java index c7d9030e43..46445eb1bf 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/CoolItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/CoolItem.java @@ -207,7 +207,7 @@ public Rectangle getBounds () { int hwnd = parent.handle;
RECT rect = new RECT ();
OS.SendMessage (hwnd, OS.RB_GETRECT, index, rect);
- int width = rect.right - rect.left;
+ int width = rect.right - rect.left + 2;
int height = rect.bottom - rect.top;
return new Rectangle (rect.left, rect.top, width, height);
}
@@ -443,7 +443,7 @@ public Point getSize() { int hwnd = parent.handle;
RECT rect = new RECT ();
OS.SendMessage (hwnd, OS.RB_GETRECT, index, rect);
- int width = rect.right - rect.left;
+ int width = rect.right - rect.left + 2;
int height = rect.bottom - rect.top;
return new Point (width, height);
}
@@ -500,7 +500,7 @@ public void setSize (int width, int height) { if (!minimum) rbBand.cyMinChild = height;
rbBand.cyChild = rbBand.cyMaxChild = height;
if (!isLastItem) {
- rbBand.cx = width;
+ rbBand.cx = width - 2;
rbBand.fMask |= OS.RBBIM_SIZE;
}
OS.SendMessage (hwnd, OS.RB_SETBANDINFO, index, rbBand);
|