Mercurial > dwindows
diff os2/dw.c @ 849:39a74ebfdd0d
Added WM_PAINT to the scrollbox window procedure to get rid of the dead area between the 2 scrollbars.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 31 Mar 2011 01:46:46 +0000 |
parents | 543e591c69a3 |
children | 6ed34b83a741 |
line wrap: on
line diff
--- a/os2/dw.c Thu Mar 31 01:37:18 2011 +0000 +++ b/os2/dw.c Thu Mar 31 01:46:46 2011 +0000 @@ -1615,6 +1615,18 @@ { switch(msg) { + case WM_PAINT: + { + HPS hpsPaint; + RECTL rclPaint; + + hpsPaint = WinBeginPaint(hWnd, 0, 0); + WinQueryWindowRect(hWnd, &rclPaint); + WinFillRect(hpsPaint, &rclPaint, CLR_PALEGRAY); + WinEndPaint(hpsPaint); + + break; + } case WM_HSCROLL: case WM_VSCROLL: {