- Timestamp:
- Oct 23, 2009, 8:54:47 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/plugins/org.eclipse.swt/Eclipse SWT/pm/org/eclipse/swt/widgets/Slider.java
r14 r215 159 159 int width = border * 2, height = border * 2; 160 160 if ((style & SWT.HORIZONTAL) != 0) { 161 width += OS.WinQuerySysValue ( handle, OS.SV_CXHSCROLLARROW ) * 10;162 height += OS.WinQuerySysValue ( handle, OS.SV_CYHSCROLL);161 width += OS.WinQuerySysValue (OS.HWND_DESKTOP, OS.SV_CXHSCROLLARROW ) * 10; 162 height += OS.WinQuerySysValue (OS.HWND_DESKTOP, OS.SV_CYHSCROLL); 163 163 } else { 164 width += OS.WinQuerySysValue ( handle, OS.SV_CXVSCROLL);165 height += OS.WinQuerySysValue ( handle, OS.SV_CYVSCROLLARROW ) * 10;164 width += OS.WinQuerySysValue (OS.HWND_DESKTOP, OS.SV_CXVSCROLL); 165 height += OS.WinQuerySysValue (OS.HWND_DESKTOP, OS.SV_CYVSCROLLARROW ) * 10; 166 166 } 167 167 if (wHint != SWT.DEFAULT) width = wHint + (border * 2);
Note:
See TracChangeset
for help on using the changeset viewer.