diff dwt/widgets/CoolBar.d @ 213:36f5cb12e1a2

Update to SWT 3.4M7
author Frank Benoit <benoit@tionex.de>
date Sat, 17 May 2008 17:34:28 +0200
parents ab60f3309436
children 43b41c7fe84a
line wrap: on
line diff
--- a/dwt/widgets/CoolBar.d	Mon May 05 00:12:38 2008 +0200
+++ b/dwt/widgets/CoolBar.d	Sat May 17 17:34:28 2008 +0200
@@ -1102,7 +1102,7 @@
     */
     if (OS.COMCTL32_MAJOR >= 6) return LRESULT.ZERO;
     Rectangle rect = getBounds ();
-    int code = callWindowProc (handle, OS.WM_SETREDRAW, wParam, lParam);
+    int /*long*/ code = callWindowProc (handle, OS.WM_SETREDRAW, wParam, lParam);
     OS.DefWindowProc (handle, OS.WM_SETREDRAW, wParam, lParam);
     if ( rect != getBounds ()) {
         parent.redraw (rect.x, rect.y, rect.width, rect.height, true);
@@ -1112,7 +1112,7 @@
 
 override LRESULT WM_SIZE (int wParam, int lParam) {
     if (ignoreResize) {
-        int code = callWindowProc (handle, OS.WM_SIZE, wParam, lParam);
+        int /*long*/ code = callWindowProc (handle, OS.WM_SIZE, wParam, lParam);
         if (code is 0) return LRESULT.ZERO;
         return new LRESULT (code);
     }
@@ -1130,8 +1130,7 @@
         case OS.RBN_BEGINDRAG: {
             int pos = OS.GetMessagePos ();
             POINT pt;
-            pt.x = cast(short) (pos & 0xFFFF);
-            pt.y = cast(short) (pos >> 16);
+            OS.POINTSTOPOINT (pt, pos);
             OS.ScreenToClient (handle, &pt);
             int button = display.lastButton !is 0 ? display.lastButton : 1;
             if (!sendDragEvent (button, pt.x, pt.y)) return LRESULT.ONE;