comparison dwt/widgets/Scale.d @ 238:efe25e7c8a96

Fix Scale Widget merger failure. Thanks yidabu for the report.
author Frank Benoit <benoit@tionex.de>
date Fri, 20 Jun 2008 01:29:54 +0200
parents 36f5cb12e1a2
children fd9c62a2998e
comparison
equal deleted inserted replaced
237:e2affbeb686d 238:efe25e7c8a96
476 476
477 override int windowProc () { 477 override int windowProc () {
478 return cast(int) TrackBarProc; 478 return cast(int) TrackBarProc;
479 } 479 }
480 480
481 override LRESULT WM_PAINT (int wParam, int lParam) { 481 override LRESULT WM_MOUSEWHEEL (int wParam, int lParam) {
482 LRESULT result = super.WM_MOUSEWHEEL (wParam, lParam); 482 LRESULT result = super.WM_MOUSEWHEEL (wParam, lParam);
483 if (result !is null) return result; 483 if (result !is null) return result;
484 /* 484 /*
485 * Bug in Windows. When a track bar slider is changed 485 * Bug in Windows. When a track bar slider is changed
486 * from WM_MOUSEWHEEL, it does not always send either 486 * from WM_MOUSEWHEEL, it does not always send either
504 // widget could be disposed at this point 504 // widget could be disposed at this point
505 } 505 }
506 return new LRESULT (code); 506 return new LRESULT (code);
507 } 507 }
508 508
509 override LRESULT WM_MOUSEWHEEL (int wParam, int lParam) { 509 override LRESULT WM_PAINT (int wParam, int lParam) {
510 /* 510 /*
511 * Bug in Windows. For some reason, when WM_CTLCOLORSTATIC 511 * Bug in Windows. For some reason, when WM_CTLCOLORSTATIC
512 * is used to implement transparency and returns a NULL brush, 512 * is used to implement transparency and returns a NULL brush,
513 * Windows doesn't always draw the track bar. It seems that 513 * Windows doesn't always draw the track bar. It seems that
514 * it is drawn correctly the first time. It is possible that 514 * it is drawn correctly the first time. It is possible that