comparison 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
comparison
equal deleted inserted replaced
848:543e591c69a3 849:39a74ebfdd0d
1613 /* This procedure handles scrollbox */ 1613 /* This procedure handles scrollbox */
1614 MRESULT EXPENTRY _scrollwndproc(HWND hWnd, ULONG msg, MPARAM mp1, MPARAM mp2) 1614 MRESULT EXPENTRY _scrollwndproc(HWND hWnd, ULONG msg, MPARAM mp1, MPARAM mp2)
1615 { 1615 {
1616 switch(msg) 1616 switch(msg)
1617 { 1617 {
1618 case WM_PAINT:
1619 {
1620 HPS hpsPaint;
1621 RECTL rclPaint;
1622
1623 hpsPaint = WinBeginPaint(hWnd, 0, 0);
1624 WinQueryWindowRect(hWnd, &rclPaint);
1625 WinFillRect(hpsPaint, &rclPaint, CLR_PALEGRAY);
1626 WinEndPaint(hpsPaint);
1627
1628 break;
1629 }
1618 case WM_HSCROLL: 1630 case WM_HSCROLL:
1619 case WM_VSCROLL: 1631 case WM_VSCROLL:
1620 { 1632 {
1621 MPARAM res; 1633 MPARAM res;
1622 int *pos, min, max, page, which = SHORT2FROMMP(mp2); 1634 int *pos, min, max, page, which = SHORT2FROMMP(mp2);