diff options
author | Silenio Quarti <silenio> | 2007-06-26 19:52:07 +0000 |
---|---|---|
committer | Silenio Quarti <silenio> | 2007-06-26 19:52:07 +0000 |
commit | dde9991d8ece5d41693dc005023b2dc541580423 (patch) | |
tree | 22208020450b18617b577876a467b86f2f89cf74 /bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java | |
parent | 32c3ac1c7d3632328e114c269edb06639a7dab76 (diff) | |
download | eclipse.platform.swt-dde9991d8ece5d41693dc005023b2dc541580423.tar.gz eclipse.platform.swt-dde9991d8ece5d41693dc005023b2dc541580423.tar.xz eclipse.platform.swt-dde9991d8ece5d41693dc005023b2dc541580423.zip |
use macros for lParam and wParam
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java index ea2ebdd596..9ed931e8cc 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java @@ -747,8 +747,8 @@ LRESULT WM_LBUTTONDOWN (int wParam, int lParam) { if (result == LRESULT.ZERO) return result; if (OS.COMCTL32_MAJOR < 6) { if (focusIndex != -1) setFocus (); - int x = lParam & 0xFFFF; - int y = lParam >> 16; + int x = OS.GET_X_LPARAM (lParam); + int y = OS.GET_Y_LPARAM (lParam); int offset = layout.getOffset (x, y, null); int oldSelectionX = selection.x; int oldSelectionY = selection.y; @@ -785,8 +785,8 @@ LRESULT WM_LBUTTONUP (int wParam, int lParam) { if (result == LRESULT.ZERO) return result; if (OS.COMCTL32_MAJOR < 6) { if (mouseDownIndex == -1) return result; - int x = lParam & 0xFFFF; - int y = lParam >> 16; + int x = OS.GET_X_LPARAM (lParam); + int y = OS.GET_Y_LPARAM (lParam); Rectangle [] rects = getRectangles (mouseDownIndex); for (int i = 0; i < rects.length; i++) { Rectangle rect = rects [i]; @@ -805,8 +805,8 @@ LRESULT WM_LBUTTONUP (int wParam, int lParam) { LRESULT WM_MOUSEMOVE (int wParam, int lParam) { LRESULT result = super.WM_MOUSEMOVE (wParam, lParam); if (OS.COMCTL32_MAJOR < 6) { - int x = lParam & 0xFFFF; - int y = lParam >> 16; + int x = OS.GET_X_LPARAM (lParam); + int y = OS.GET_Y_LPARAM (lParam); if (OS.GetKeyState (OS.VK_LBUTTON) < 0) { int oldSelection = selection.y; selection.y = layout.getOffset (x, y, null); |