Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandr Miloslavskiy2020-07-22 08:47:57 -0400
committerNiraj Modi2020-07-27 07:20:25 -0400
commitd56087d829a58cb54ccd23f2a8593c4d8f632f62 (patch)
treecbf754da88e6b0561346f5d28bdd88ae2cf7cfb8
parent1ecb51b784c373e247836c077a9502ceda7e0218 (diff)
downloadeclipse.platform.swt-d56087d829a58cb54ccd23f2a8593c4d8f632f62.tar.gz
eclipse.platform.swt-d56087d829a58cb54ccd23f2a8593c4d8f632f62.tar.xz
eclipse.platform.swt-d56087d829a58cb54ccd23f2a8593c4d8f632f62.zip
Bug 565426 - [Win32] Remove unused parameters from Widget.sendMouseEvent()
The parameters are not used for many years. `msg` hasn't been used since first commit. `wParam` was last used before Bug 24393 (2002-10-09) Change-Id: I6336afb259a04dee77a5faf2f6a4190b80e8207c Signed-off-by: Alexandr Miloslavskiy <alexandr.miloslavskiy@syntevo.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Slider.java4
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java12
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java4
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java16
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Widget.java48
5 files changed, 42 insertions, 42 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Slider.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Slider.java
index ee01fef35c..849c002e80 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Slider.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Slider.java
@@ -700,7 +700,7 @@ LRESULT WM_LBUTTONDBLCLK (long wParam, long lParam) {
* release the automatic capture.
*/
if (OS.GetCapture () == handle) OS.ReleaseCapture ();
- if (!sendMouseEvent (SWT.MouseUp, 1, handle, OS.WM_LBUTTONUP, wParam, lParam)) {
+ if (!sendMouseEvent (SWT.MouseUp, 1, handle, lParam)) {
return LRESULT.ZERO;
}
return result;
@@ -732,7 +732,7 @@ LRESULT WM_LBUTTONDOWN (long wParam, long lParam) {
* release the automatic capture.
*/
if (OS.GetCapture () == handle) OS.ReleaseCapture ();
- if (!sendMouseEvent (SWT.MouseUp, 1, handle, OS.WM_LBUTTONUP, wParam, lParam)) {
+ if (!sendMouseEvent (SWT.MouseUp, 1, handle, lParam)) {
return LRESULT.ONE;
}
return result;
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java
index efd4d1f913..3a7e079c4c 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java
@@ -3692,7 +3692,7 @@ Event sendMeasureItemEvent (TableItem item, int row, int column, long hDC) {
LRESULT sendMouseDownEvent (int type, int button, int msg, long wParam, long lParam) {
Display display = this.display;
display.captureChanged = false;
- if (!sendMouseEvent (type, button, handle, msg, wParam, lParam)) {
+ if (!sendMouseEvent (type, button, handle, lParam)) {
if (!display.captureChanged && !isDisposed ()) {
if (OS.GetCapture () != handle) OS.SetCapture (handle);
}
@@ -3859,7 +3859,7 @@ LRESULT sendMouseDownEvent (int type, int button, int msg, long wParam, long lPa
fakeMouseUp = (pinfo.flags & OS.LVHT_ONITEMSTATEICON) == 0;
}
if (fakeMouseUp) {
- sendMouseEvent (SWT.MouseUp, button, handle, msg, wParam, lParam);
+ sendMouseEvent (SWT.MouseUp, button, handle, lParam);
}
}
return new LRESULT (code);
@@ -6016,8 +6016,8 @@ LRESULT WM_LBUTTONDBLCLK (long wParam, long lParam) {
int index = (int)OS.SendMessage (handle, OS.LVM_HITTEST, 0, pinfo);
Display display = this.display;
display.captureChanged = false;
- sendMouseEvent (SWT.MouseDown, 1, handle, OS.WM_LBUTTONDOWN, wParam, lParam);
- if (!sendMouseEvent (SWT.MouseDoubleClick, 1, handle, OS.WM_LBUTTONDBLCLK, wParam, lParam)) {
+ sendMouseEvent (SWT.MouseDown, 1, handle, lParam);
+ if (!sendMouseEvent (SWT.MouseDoubleClick, 1, handle, lParam)) {
if (!display.captureChanged && !isDisposed ()) {
if (OS.GetCapture () != handle) OS.SetCapture (handle);
}
@@ -6126,8 +6126,8 @@ LRESULT WM_RBUTTONDBLCLK (long wParam, long lParam) {
OS.SendMessage (handle, OS.LVM_HITTEST, 0, pinfo);
Display display = this.display;
display.captureChanged = false;
- sendMouseEvent (SWT.MouseDown, 3, handle, OS.WM_RBUTTONDOWN, wParam, lParam);
- if (sendMouseEvent (SWT.MouseDoubleClick, 3, handle, OS.WM_RBUTTONDBLCLK, wParam, lParam)) {
+ sendMouseEvent (SWT.MouseDown, 3, handle, lParam);
+ if (sendMouseEvent (SWT.MouseDoubleClick, 3, handle, lParam)) {
if (pinfo.iItem != -1) callWindowProc (handle, OS.WM_RBUTTONDBLCLK, wParam, lParam);
}
if (!display.captureChanged && !isDisposed ()) {
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java
index b3ec86f84a..9f3a1f003c 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java
@@ -2890,8 +2890,8 @@ LRESULT WM_LBUTTONDBLCLK (long wParam, long lParam) {
* calling the window proc.
*/
LRESULT result = null;
- sendMouseEvent (SWT.MouseDown, 1, handle, OS.WM_LBUTTONDOWN, wParam, lParam);
- if (!sendMouseEvent (SWT.MouseDoubleClick, 1, handle, OS.WM_LBUTTONDBLCLK, wParam, lParam)) {
+ sendMouseEvent (SWT.MouseDown, 1, handle, lParam);
+ if (!sendMouseEvent (SWT.MouseDoubleClick, 1, handle, lParam)) {
result = LRESULT.ZERO;
}
if (!display.captureChanged && !isDisposed ()) {
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java
index 18c7201e95..12d1258c79 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java
@@ -6288,8 +6288,8 @@ LRESULT WM_LBUTTONDBLCLK (long wParam, long lParam) {
if ((lpht.flags & OS.TVHT_ONITEMSTATEICON) != 0) {
Display display = this.display;
display.captureChanged = false;
- sendMouseEvent (SWT.MouseDown, 1, handle, OS.WM_LBUTTONDOWN, wParam, lParam);
- if (!sendMouseEvent (SWT.MouseDoubleClick, 1, handle, OS.WM_LBUTTONDBLCLK, wParam, lParam)) {
+ sendMouseEvent (SWT.MouseDown, 1, handle, lParam);
+ if (!sendMouseEvent (SWT.MouseDoubleClick, 1, handle, lParam)) {
if (!display.captureChanged && !isDisposed ()) {
if (OS.GetCapture () != handle) OS.SetCapture (handle);
}
@@ -6361,7 +6361,7 @@ LRESULT WM_LBUTTONDOWN (long wParam, long lParam) {
if (lpht.hItem == 0 || (lpht.flags & OS.TVHT_ONITEMBUTTON) != 0) {
Display display = this.display;
display.captureChanged = false;
- if (!sendMouseEvent (SWT.MouseDown, 1, handle, OS.WM_LBUTTONDOWN, wParam, lParam)) {
+ if (!sendMouseEvent (SWT.MouseDown, 1, handle, lParam)) {
if (!display.captureChanged && !isDisposed ()) {
if (OS.GetCapture () != handle) OS.SetCapture (handle);
}
@@ -6451,7 +6451,7 @@ LRESULT WM_LBUTTONDOWN (long wParam, long lParam) {
if ((lpht.flags & OS.TVHT_ONITEMSTATEICON) != 0) {
Display display = this.display;
display.captureChanged = false;
- if (!sendMouseEvent (SWT.MouseDown, 1, handle, OS.WM_LBUTTONDOWN, wParam, lParam)) {
+ if (!sendMouseEvent (SWT.MouseDown, 1, handle, lParam)) {
if (!display.captureChanged && !isDisposed ()) {
if (OS.GetCapture () != handle) OS.SetCapture (handle);
}
@@ -6512,7 +6512,7 @@ LRESULT WM_LBUTTONDOWN (long wParam, long lParam) {
if ((lpht.flags & OS.TVHT_ONITEM) == 0) {
Display display = this.display;
display.captureChanged = false;
- if (!sendMouseEvent (SWT.MouseDown, 1, handle, OS.WM_LBUTTONDOWN, wParam, lParam)) {
+ if (!sendMouseEvent (SWT.MouseDown, 1, handle, lParam)) {
if (!display.captureChanged && !isDisposed ()) {
if (OS.GetCapture () != handle) OS.SetCapture (handle);
}
@@ -6584,7 +6584,7 @@ LRESULT WM_LBUTTONDOWN (long wParam, long lParam) {
/* Do the selection */
Display display = this.display;
display.captureChanged = false;
- if (!sendMouseEvent (SWT.MouseDown, 1, handle, OS.WM_LBUTTONDOWN, wParam, lParam)) {
+ if (!sendMouseEvent (SWT.MouseDown, 1, handle, lParam)) {
if (!display.captureChanged && !isDisposed ()) {
if (OS.GetCapture () != handle) OS.SetCapture (handle);
}
@@ -6733,7 +6733,7 @@ LRESULT WM_LBUTTONDOWN (long wParam, long lParam) {
} else {
int bits = OS.GetWindowLong (handle, OS.GWL_STYLE);
if ((bits & OS.TVS_DISABLEDRAGDROP) == 0) {
- sendMouseEvent (SWT.MouseUp, 1, handle, OS.WM_LBUTTONUP, wParam, lParam);
+ sendMouseEvent (SWT.MouseUp, 1, handle, lParam);
}
}
dragStarted = false;
@@ -6816,7 +6816,7 @@ LRESULT WM_RBUTTONDOWN (long wParam, long lParam) {
*/
Display display = this.display;
display.captureChanged = false;
- if (!sendMouseEvent (SWT.MouseDown, 3, handle, OS.WM_RBUTTONDOWN, wParam, lParam)) {
+ if (!sendMouseEvent (SWT.MouseDown, 3, handle, lParam)) {
if (!display.captureChanged && !isDisposed ()) {
if (OS.GetCapture () != handle) OS.SetCapture (handle);
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Widget.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Widget.java
index f92a249a3e..2a0c10630e 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Widget.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Widget.java
@@ -1090,11 +1090,11 @@ boolean sendKeyEvent (int type, int msg, long wParam, long lParam, Event event)
return event.doit;
}
-boolean sendMouseEvent (int type, int button, long hwnd, int msg, long wParam, long lParam) {
- return sendMouseEvent (type, button, display.getClickCount (type, button, hwnd, lParam), 0, false, hwnd, msg, wParam, lParam);
+boolean sendMouseEvent (int type, int button, long hwnd, long lParam) {
+ return sendMouseEvent (type, button, display.getClickCount (type, button, hwnd, lParam), 0, false, hwnd, lParam);
}
-boolean sendMouseEvent (int type, int button, int count, int detail, boolean send, long hwnd, int msg, long wParam, long lParam) {
+boolean sendMouseEvent (int type, int button, int count, int detail, boolean send, long hwnd, long lParam) {
if (!hooks (type) && !filters (type)) return true;
Event event = new Event ();
event.button = button;
@@ -1141,7 +1141,7 @@ boolean sendMouseWheelEvent (int type, long hwnd, long wParam, long lParam) {
OS.POINTSTOPOINT (pt, lParam);
OS.ScreenToClient (hwnd, pt);
lParam = OS.MAKELPARAM (pt.x, pt.y);
- return sendMouseEvent (type, 0, count, detail, true, hwnd, OS.WM_MOUSEWHEEL, wParam, lParam);
+ return sendMouseEvent (type, 0, count, detail, true, hwnd, lParam);
}
/**
@@ -1828,8 +1828,8 @@ LRESULT wmLButtonDblClk (long hwnd, long wParam, long lParam) {
LRESULT result = null;
Display display = this.display;
display.captureChanged = false;
- sendMouseEvent (SWT.MouseDown, 1, hwnd, OS.WM_LBUTTONDOWN, wParam, lParam);
- if (sendMouseEvent (SWT.MouseDoubleClick, 1, hwnd, OS.WM_LBUTTONDBLCLK, wParam, lParam)) {
+ sendMouseEvent (SWT.MouseDown, 1, hwnd, lParam);
+ if (sendMouseEvent (SWT.MouseDoubleClick, 1, hwnd, lParam)) {
result = new LRESULT (callWindowProc (hwnd, OS.WM_LBUTTONDBLCLK, wParam, lParam));
} else {
result = LRESULT.ZERO;
@@ -1864,7 +1864,7 @@ LRESULT wmLButtonDown (long hwnd, long wParam, long lParam) {
mouseDown = OS.GetKeyState (OS.VK_LBUTTON) < 0;
}
display.captureChanged = false;
- boolean dispatch = sendMouseEvent (SWT.MouseDown, 1, count, 0, false, hwnd, OS.WM_LBUTTONDOWN, wParam, lParam);
+ boolean dispatch = sendMouseEvent (SWT.MouseDown, 1, count, 0, false, hwnd, lParam);
if (dispatch && (consume == null || !consume [0])) {
result = new LRESULT (callWindowProc (hwnd, OS.WM_LBUTTONDOWN, wParam, lParam));
} else {
@@ -1910,7 +1910,7 @@ LRESULT wmLButtonDown (long hwnd, long wParam, long lParam) {
LRESULT wmLButtonUp (long hwnd, long wParam, long lParam) {
Display display = this.display;
LRESULT result = null;
- if (sendMouseEvent (SWT.MouseUp, 1, hwnd, OS.WM_LBUTTONUP, wParam, lParam)) {
+ if (sendMouseEvent (SWT.MouseUp, 1, hwnd, lParam)) {
result = new LRESULT (callWindowProc (hwnd, OS.WM_LBUTTONUP, wParam, lParam));
} else {
result = LRESULT.ZERO;
@@ -1946,8 +1946,8 @@ LRESULT wmMButtonDblClk (long hwnd, long wParam, long lParam) {
LRESULT result = null;
Display display = this.display;
display.captureChanged = false;
- sendMouseEvent (SWT.MouseDown, 2, hwnd, OS.WM_MBUTTONDOWN, wParam, lParam);
- if (sendMouseEvent (SWT.MouseDoubleClick, 2, hwnd, OS.WM_MBUTTONDBLCLK, wParam, lParam)) {
+ sendMouseEvent (SWT.MouseDown, 2, hwnd, lParam);
+ if (sendMouseEvent (SWT.MouseDoubleClick, 2, hwnd, lParam)) {
result = new LRESULT (callWindowProc (hwnd, OS.WM_MBUTTONDBLCLK, wParam, lParam));
} else {
result = LRESULT.ZERO;
@@ -1962,7 +1962,7 @@ LRESULT wmMButtonDown (long hwnd, long wParam, long lParam) {
LRESULT result = null;
Display display = this.display;
display.captureChanged = false;
- if (sendMouseEvent (SWT.MouseDown, 2, hwnd, OS.WM_MBUTTONDOWN, wParam, lParam)) {
+ if (sendMouseEvent (SWT.MouseDown, 2, hwnd, lParam)) {
result = new LRESULT (callWindowProc (hwnd, OS.WM_MBUTTONDOWN, wParam, lParam));
} else {
result = LRESULT.ZERO;
@@ -1976,7 +1976,7 @@ LRESULT wmMButtonDown (long hwnd, long wParam, long lParam) {
LRESULT wmMButtonUp (long hwnd, long wParam, long lParam) {
Display display = this.display;
LRESULT result = null;
- if (sendMouseEvent (SWT.MouseUp, 2, hwnd, OS.WM_MBUTTONUP, wParam, lParam)) {
+ if (sendMouseEvent (SWT.MouseUp, 2, hwnd, lParam)) {
result = new LRESULT (callWindowProc (hwnd, OS.WM_MBUTTONUP, wParam, lParam));
} else {
result = LRESULT.ZERO;
@@ -1996,7 +1996,7 @@ LRESULT wmMButtonUp (long hwnd, long wParam, long lParam) {
}
LRESULT wmMouseHover (long hwnd, long wParam, long lParam) {
- if (!sendMouseEvent (SWT.MouseHover, 0, hwnd, OS.WM_MOUSEHOVER, wParam, lParam)) {
+ if (!sendMouseEvent (SWT.MouseHover, 0, hwnd, lParam)) {
return LRESULT.ZERO;
}
return null;
@@ -2009,7 +2009,7 @@ LRESULT wmMouseLeave (long hwnd, long wParam, long lParam) {
OS.POINTSTOPOINT (pt, pos);
OS.ScreenToClient (hwnd, pt);
lParam = OS.MAKELPARAM (pt.x, pt.y);
- if (!sendMouseEvent (SWT.MouseExit, 0, hwnd, OS.WM_MOUSELEAVE, wParam, lParam)) {
+ if (!sendMouseEvent (SWT.MouseExit, 0, hwnd, lParam)) {
return LRESULT.ZERO;
}
return null;
@@ -2047,7 +2047,7 @@ LRESULT wmMouseMove (long hwnd, long wParam, long lParam) {
OS.TranslateMessage (msg);
OS.DispatchMessage (msg);
}
- sendMouseEvent (SWT.MouseEnter, 0, hwnd, OS.WM_MOUSEMOVE, wParam, lParam);
+ sendMouseEvent (SWT.MouseEnter, 0, hwnd, lParam);
}
} else {
lpEventTrack.dwFlags = OS.TME_HOVER;
@@ -2056,7 +2056,7 @@ LRESULT wmMouseMove (long hwnd, long wParam, long lParam) {
}
if (pos != display.lastMouse) {
display.lastMouse = pos;
- if (!sendMouseEvent (SWT.MouseMove, 0, hwnd, OS.WM_MOUSEMOVE, wParam, lParam)) {
+ if (!sendMouseEvent (SWT.MouseMove, 0, hwnd, lParam)) {
result = LRESULT.ZERO;
}
}
@@ -2160,8 +2160,8 @@ LRESULT wmRButtonDblClk (long hwnd, long wParam, long lParam) {
LRESULT result = null;
Display display = this.display;
display.captureChanged = false;
- sendMouseEvent (SWT.MouseDown, 3, hwnd, OS.WM_RBUTTONDOWN, wParam, lParam);
- if (sendMouseEvent (SWT.MouseDoubleClick, 3, hwnd, OS.WM_RBUTTONDBLCLK, wParam, lParam)) {
+ sendMouseEvent (SWT.MouseDown, 3, hwnd, lParam);
+ if (sendMouseEvent (SWT.MouseDoubleClick, 3, hwnd, lParam)) {
result = new LRESULT (callWindowProc (hwnd, OS.WM_RBUTTONDBLCLK, wParam, lParam));
} else {
result = LRESULT.ZERO;
@@ -2176,7 +2176,7 @@ LRESULT wmRButtonDown (long hwnd, long wParam, long lParam) {
LRESULT result = null;
Display display = this.display;
display.captureChanged = false;
- if (sendMouseEvent (SWT.MouseDown, 3, hwnd, OS.WM_RBUTTONDOWN, wParam, lParam)) {
+ if (sendMouseEvent (SWT.MouseDown, 3, hwnd, lParam)) {
result = new LRESULT (callWindowProc (hwnd, OS.WM_RBUTTONDOWN, wParam, lParam));
} else {
result = LRESULT.ZERO;
@@ -2190,7 +2190,7 @@ LRESULT wmRButtonDown (long hwnd, long wParam, long lParam) {
LRESULT wmRButtonUp (long hwnd, long wParam, long lParam) {
Display display = this.display;
LRESULT result = null;
- if (sendMouseEvent (SWT.MouseUp, 3, hwnd, OS.WM_RBUTTONUP, wParam, lParam)) {
+ if (sendMouseEvent (SWT.MouseUp, 3, hwnd, lParam)) {
result = new LRESULT (callWindowProc (hwnd, OS.WM_RBUTTONUP, wParam, lParam));
} else {
/* Call the DefWindowProc() to support WM_CONTEXTMENU */
@@ -2369,8 +2369,8 @@ LRESULT wmXButtonDblClk (long hwnd, long wParam, long lParam) {
Display display = this.display;
display.captureChanged = false;
int button = OS.HIWORD (wParam) == OS.XBUTTON1 ? 4 : 5;
- sendMouseEvent (SWT.MouseDown, button, hwnd, OS.WM_XBUTTONDOWN, wParam, lParam);
- if (sendMouseEvent (SWT.MouseDoubleClick, button, hwnd, OS.WM_XBUTTONDBLCLK, wParam, lParam)) {
+ sendMouseEvent (SWT.MouseDown, button, hwnd, lParam);
+ if (sendMouseEvent (SWT.MouseDoubleClick, button, hwnd, lParam)) {
result = new LRESULT (callWindowProc (hwnd, OS.WM_XBUTTONDBLCLK, wParam, lParam));
} else {
result = LRESULT.ZERO;
@@ -2387,7 +2387,7 @@ LRESULT wmXButtonDown (long hwnd, long wParam, long lParam) {
display.captureChanged = false;
display.xMouse = true;
int button = OS.HIWORD (wParam) == OS.XBUTTON1 ? 4 : 5;
- if (sendMouseEvent (SWT.MouseDown, button, hwnd, OS.WM_XBUTTONDOWN, wParam, lParam)) {
+ if (sendMouseEvent (SWT.MouseDown, button, hwnd, lParam)) {
result = new LRESULT (callWindowProc (hwnd, OS.WM_XBUTTONDOWN, wParam, lParam));
} else {
result = LRESULT.ZERO;
@@ -2402,7 +2402,7 @@ LRESULT wmXButtonUp (long hwnd, long wParam, long lParam) {
Display display = this.display;
LRESULT result = null;
int button = OS.HIWORD (wParam) == OS.XBUTTON1 ? 4 : 5;
- if (sendMouseEvent (SWT.MouseUp, button, hwnd, OS.WM_XBUTTONUP, wParam, lParam)) {
+ if (sendMouseEvent (SWT.MouseUp, button, hwnd, lParam)) {
result = new LRESULT (callWindowProc (hwnd, OS.WM_XBUTTONUP, wParam, lParam));
} else {
result = LRESULT.ZERO;

Back to the top