diff win/dw.c @ 1445:8f7692fcad37

Use system metrics/values to get the scrollbar sizes on Windows and OS/2.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 08 Dec 2011 23:49:55 +0000
parents 66999ff50174
children 508dde3dc398
line wrap: on
line diff
--- a/win/dw.c	Thu Dec 08 23:32:40 2011 +0000
+++ b/win/dw.c	Thu Dec 08 23:49:55 2011 +0000
@@ -4247,14 +4247,14 @@
         GetWindowLong(handle, GWL_STYLE) & SBS_VERT)
       {
          /* Vertical */
-         thiswidth = 14;
+         thiswidth = GetSystemMetrics(SM_CXVSCROLL);
          thisheight = 100;
       }
       else
       {
          /* Horizontal */
          thiswidth = 100;
-         thisheight = 14;
+         thisheight = GetSystemMetrics(SM_CYHSCROLL);
       }
    }
    /* Spinbuttons */