# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1350254589 0 # Node ID d0dda44136a082656521c6e12f3b1fe7f375a6e8 # Parent 6ae40234d5316efa0f6656c184b505f07f4ff57a Initial code to make sure the background of notebooks on OS/2 draws even if there are no pages in the notebook. Was hoping to get it to draw the outline at least, but this is better than a bleed through undrawn area. diff -r 6ae40234d531 -r d0dda44136a0 os2/dw.c --- a/os2/dw.c Tue Oct 09 05:05:29 2012 +0000 +++ b/os2/dw.c Sun Oct 14 22:43:09 2012 +0000 @@ -4287,6 +4287,17 @@ switch(msg) { + case WM_PAINT: + if(!WinSendMsg(hwnd, BKM_QUERYPAGECOUNT, 0, (MPARAM)BKA_END)) + { + HPS hpsPaint; + RECTL rclPaint; + + hpsPaint = WinBeginPaint(hwnd, 0, &rclPaint); + WinFillRect(hpsPaint, &rclPaint, CLR_PALEGRAY); + WinEndPaint(hpsPaint); + } + break; case WM_CHAR: if(SHORT1FROMMP(mp2) == '\t') {