comparison 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
comparison
equal deleted inserted replaced
1444:914ac25f7d37 1445:8f7692fcad37
4245 { 4245 {
4246 if(strnicmp(tmpbuf, SCROLLBARCLASSNAME, strlen(SCROLLBARCLASSNAME)+1) == 0 && 4246 if(strnicmp(tmpbuf, SCROLLBARCLASSNAME, strlen(SCROLLBARCLASSNAME)+1) == 0 &&
4247 GetWindowLong(handle, GWL_STYLE) & SBS_VERT) 4247 GetWindowLong(handle, GWL_STYLE) & SBS_VERT)
4248 { 4248 {
4249 /* Vertical */ 4249 /* Vertical */
4250 thiswidth = 14; 4250 thiswidth = GetSystemMetrics(SM_CXVSCROLL);
4251 thisheight = 100; 4251 thisheight = 100;
4252 } 4252 }
4253 else 4253 else
4254 { 4254 {
4255 /* Horizontal */ 4255 /* Horizontal */
4256 thiswidth = 100; 4256 thiswidth = 100;
4257 thisheight = 14; 4257 thisheight = GetSystemMetrics(SM_CYHSCROLL);
4258 } 4258 }
4259 } 4259 }
4260 /* Spinbuttons */ 4260 /* Spinbuttons */
4261 else if(strnicmp(tmpbuf, UPDOWN_CLASS, strlen(UPDOWN_CLASS)+1) == 0) 4261 else if(strnicmp(tmpbuf, UPDOWN_CLASS, strlen(UPDOWN_CLASS)+1) == 0)
4262 { 4262 {