controls/scroll.c

Dmitry Timoshkov dmitry at baikal.ru
Mon Mar 29 06:42:02 CST 2004


"Ge van Geldorp" <ge at gse.nl> wrote:

> If you double click on the arrow of a scrollbar control the slider will
> move only 1 position instead of the expected 2. This is because the
> second click is delivered as a WM_LBUTTONDBLCLK (due to the CS_DBLCLKS
> class style) which is not handled by the scrollbar control. I can send
> you a small demo program.

Thanks for the explanation.

There is no need for a demo. Any app with ScrollBar window class could
confirm what you mean. Spy++ under Windows clearly shows that ScrollBar
under Windows reacts on WM_LBUTTONDBLCLK the same way as on WM_LBUTTONDOWN,
and that there is only single WM_LBUTTONDOWN, followed by WM_LBUTTONUP,
WM_LBUTTONDBLCLK, WM_LBUTTONUP.

Changelog:
    Dmitry Timoshkov <dmitry at codeweavers.com>
    Scrollbar should also react on WM_LBUTTONDBLCLK.

-- 
Dmitry.
-------------- next part --------------
--- cvs/hq/wine/controls/scroll.c	Wed Mar 17 02:17:42 2004
+++ wine/controls/scroll.c	Mon Mar 29 12:33:56 2004
@@ -1408,6 +1408,7 @@ static LRESULT WINAPI ScrollBarWndProc( 
 	}
 	return 0;
 
+    case WM_LBUTTONDBLCLK:
     case WM_LBUTTONDOWN:
         {
 	    POINT pt;


More information about the wine-patches mailing list