Mercurial > dwindows
comparison os2/dw.c @ 1458:23f7fcc1c727
Split out scrollbars from the rest of the ranged widgets on OS/2... the others require extra size.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 15 Dec 2011 22:29:47 +0000 |
parents | a56fa83f2a7c |
children | 98de42fc664d |
comparison
equal
deleted
inserted
replaced
1457:c22477fe7347 | 1458:23f7fcc1c727 |
---|---|
4596 { | 4596 { |
4597 extrawidth = 4; | 4597 extrawidth = 4; |
4598 extraheight = 4; | 4598 extraheight = 4; |
4599 } | 4599 } |
4600 } | 4600 } |
4601 /* Ranged: Slider/Percent/Scrollbar */ | 4601 /* Ranged: Slider/Percent */ |
4602 else if(strncmp(tmpbuf, "#38", 4)== 0 || | 4602 else if(strncmp(tmpbuf, "#38", 4)== 0) |
4603 strncmp(tmpbuf, "#8", 3)== 0) | 4603 { |
4604 thiswidth = 100; | |
4605 thisheight = 20; | |
4606 } | |
4607 /* Scrollbar */ | |
4608 else if(strncmp(tmpbuf, "#8", 3)== 0) | |
4604 { | 4609 { |
4605 /* Check for vertical scrollbar */ | 4610 /* Check for vertical scrollbar */ |
4606 if(strncmp(tmpbuf, "#8", 3)== 0 && | 4611 if(WinQueryWindowULong(handle, QWL_STYLE) & SBS_VERT) |
4607 WinQueryWindowULong(handle, QWL_STYLE) & SBS_VERT) | |
4608 { | 4612 { |
4609 thiswidth = WinQuerySysValue(HWND_DESKTOP, SV_CXVSCROLL); | 4613 thiswidth = WinQuerySysValue(HWND_DESKTOP, SV_CXVSCROLL); |
4610 thisheight = 100; | 4614 thisheight = 100; |
4611 } | 4615 } |
4612 else | 4616 else |