comparison os2/dw.c @ 1816:d0dda44136a0

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.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 14 Oct 2012 22:43:09 +0000
parents 6ae40234d531
children e827394a7f20
comparison
equal deleted inserted replaced
1815:6ae40234d531 1816:d0dda44136a0
4285 if(blah) 4285 if(blah)
4286 oldproc = blah->oldproc; 4286 oldproc = blah->oldproc;
4287 4287
4288 switch(msg) 4288 switch(msg)
4289 { 4289 {
4290 case WM_PAINT:
4291 if(!WinSendMsg(hwnd, BKM_QUERYPAGECOUNT, 0, (MPARAM)BKA_END))
4292 {
4293 HPS hpsPaint;
4294 RECTL rclPaint;
4295
4296 hpsPaint = WinBeginPaint(hwnd, 0, &rclPaint);
4297 WinFillRect(hpsPaint, &rclPaint, CLR_PALEGRAY);
4298 WinEndPaint(hpsPaint);
4299 }
4300 break;
4290 case WM_CHAR: 4301 case WM_CHAR:
4291 if(SHORT1FROMMP(mp2) == '\t') 4302 if(SHORT1FROMMP(mp2) == '\t')
4292 { 4303 {
4293 if(CHARMSG(&msg)->fs & KC_SHIFT) 4304 if(CHARMSG(&msg)->fs & KC_SHIFT)
4294 _shift_focus(hwnd, _DW_DIRECTION_BACKWARD); 4305 _shift_focus(hwnd, _DW_DIRECTION_BACKWARD);