comparison dwt/widgets/Scrollable.d @ 217:8efa9bb96c53

added overrides and reverted OS.CallWindowProc
author Frank Benoit <benoit@tionex.de>
date Sun, 18 May 2008 19:54:28 +0200
parents 36f5cb12e1a2
children fd9c62a2998e
comparison
equal deleted inserted replaced
216:48de87adead1 217:8efa9bb96c53
25 import dwt.widgets.Event; 25 import dwt.widgets.Event;
26 import dwt.widgets.ScrollBar; 26 import dwt.widgets.ScrollBar;
27 import dwt.widgets.Widget; 27 import dwt.widgets.Widget;
28 28
29 import dwt.dwthelper.utils; 29 import dwt.dwthelper.utils;
30 import tango.util.log.Trace; 30 //import tango.util.log.Trace;
31 void trc( long line ){ 31 void trc( long line ){
32 //Trace.formatln( "Scrollable {}", line ); 32 //Trace.formatln( "Scrollable {}", line );
33 } 33 }
34 34
35 /** 35 /**
398 return wmScroll (verticalBar, (state & CANVAS) !is 0, handle, OS.WM_VSCROLL, wParam, lParam); 398 return wmScroll (verticalBar, (state & CANVAS) !is 0, handle, OS.WM_VSCROLL, wParam, lParam);
399 } 399 }
400 return result; 400 return result;
401 } 401 }
402 402
403 LRESULT wmNCPaint (HWND hwnd, int /*long*/ wParam, int /*long*/ lParam) { 403 override LRESULT wmNCPaint (HWND hwnd, int /*long*/ wParam, int /*long*/ lParam) {
404 LRESULT result = super.wmNCPaint (hwnd, wParam, lParam); 404 LRESULT result = super.wmNCPaint (hwnd, wParam, lParam);
405 if (result !is null) return result; 405 if (result !is null) return result;
406 /* 406 /*
407 * Bug in Windows. On XP only (not Vista), Windows sometimes 407 * Bug in Windows. On XP only (not Vista), Windows sometimes
408 * does not redraw the bottom right corner of a window that 408 * does not redraw the bottom right corner of a window that