diff options
author | Steve Northover <steve> | 2004-04-15 13:57:08 +0000 |
---|---|---|
committer | Steve Northover <steve> | 2004-04-15 13:57:08 +0000 |
commit | da84ae4ec27b2fabbda8f81f7234a1777457fa62 (patch) | |
tree | d997d76dc3d9a6931d39ac93f2f52ecc50cdcb45 /bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ToolBar.java | |
parent | 446392ab6b9367a3ea800e7082f925ee789955df (diff) | |
download | eclipse.platform.swt-da84ae4ec27b2fabbda8f81f7234a1777457fa62.tar.gz eclipse.platform.swt-da84ae4ec27b2fabbda8f81f7234a1777457fa62.tar.xz eclipse.platform.swt-da84ae4ec27b2fabbda8f81f7234a1777457fa62.zip |
*** empty log message ***
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ToolBar.java')
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ToolBar.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ToolBar.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ToolBar.java index b0c2d1599e..e009c89af6 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ToolBar.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ToolBar.java @@ -182,7 +182,7 @@ public Point computeSize (int wHint, int hHint, boolean changed) { ignoreResize = true; if (redraw) OS.UpdateWindow (handle); int flags = OS.SWP_NOACTIVATE | OS.SWP_NOMOVE | OS.SWP_NOREDRAW | OS.SWP_NOZORDER; - OS.SetWindowPos (handle, 0, 0, 0, newWidth, newHeight, flags); + SetWindowPos (handle, 0, 0, 0, newWidth, newHeight, flags); int count = OS.SendMessage (handle, OS.TB_BUTTONCOUNT, 0, 0); if (count != 0) { RECT rect = new RECT (); @@ -190,7 +190,7 @@ public Point computeSize (int wHint, int hHint, boolean changed) { width = Math.max (width, rect.right); height = Math.max (height, rect.bottom); } - OS.SetWindowPos (handle, 0, 0, 0, oldWidth, oldHeight, flags); + SetWindowPos (handle, 0, 0, 0, oldWidth, oldHeight, flags); if (redraw) OS.ValidateRect (handle, null); ignoreResize = false; } @@ -687,7 +687,7 @@ void setRows (int count) { count += 2; OS.SendMessage (handle, OS.TB_SETROWS, (1 << 16) | count, 0); int flags = OS.SWP_NOACTIVATE | OS.SWP_NOMOVE | OS.SWP_NOZORDER; - OS.SetWindowPos (handle, 0, 0, 0, rect.right - rect.left, rect.bottom - rect.top, flags); + SetWindowPos (handle, 0, 0, 0, rect.right - rect.left, rect.bottom - rect.top, flags); ignoreResize = false; } } |