summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ScrollBar.java
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ScrollBar.java')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ScrollBar.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ScrollBar.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ScrollBar.java
index 49790ed4dc..366c2530b0 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ScrollBar.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ScrollBar.java
@@ -203,7 +203,7 @@ Rectangle getBounds () {
// checkWidget ();
parent.forceResize ();
RECT rect = new RECT ();
- OS.GetClientRect (parent.handle, rect);
+ OS.GetClientRect (parent.scrolledHandle (), rect);
int x = 0, y = 0, width, height;
if ((style & SWT.HORIZONTAL) != 0) {
y = rect.bottom - rect.top;
@@ -366,7 +366,7 @@ public Point getSize () {
checkWidget();
parent.forceResize ();
RECT rect = new RECT ();
- OS.GetClientRect (parent.handle, rect);
+ OS.GetClientRect (parent.scrolledHandle (), rect);
int width, height;
if ((style & SWT.HORIZONTAL) != 0) {
width = rect.right - rect.left;
@@ -426,7 +426,7 @@ public boolean getVisible () {
}
int hwndScrollBar () {
- return parent.handle;
+ return parent.scrolledHandle ();
}
/**