changeset 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 1a7c8d210b18
files os2/dw.c
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
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:
 		{