diff options
author | Steve Northover <steve> | 2006-08-30 17:34:25 +0000 |
---|---|---|
committer | Steve Northover <steve> | 2006-08-30 17:34:25 +0000 |
commit | a82cf9526e3bd01c73cdc5c3786a7972e25aa4c4 (patch) | |
tree | 573acca77120314f8fc2c4a116969cb364206a79 /bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java | |
parent | 475fd80af7f44f11c184ce4e415e7e668e7066c7 (diff) | |
download | eclipse.platform.swt-a82cf9526e3bd01c73cdc5c3786a7972e25aa4c4.tar.gz eclipse.platform.swt-a82cf9526e3bd01c73cdc5c3786a7972e25aa4c4.tar.xz eclipse.platform.swt-a82cf9526e3bd01c73cdc5c3786a7972e25aa4c4.zip |
oprimtize WM_NOTIFY to get rid of multiple new NMHDR's
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 | 6 |
1 files changed, 2 insertions, 4 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 474dfc0f61..6c17eca1ae 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 @@ -909,10 +909,8 @@ LRESULT wmColorChild (int wParam, int lParam) { return result; } -LRESULT wmNotifyChild (int wParam, int lParam) { +LRESULT wmNotifyChild (NMHDR hdr, int wParam, int lParam) { if (OS.COMCTL32_MAJOR >= 6) { - NMHDR hdr = new NMHDR (); - OS.MoveMemory (hdr, lParam, NMHDR.sizeof); switch (hdr.code) { case OS.NM_RETURN: case OS.NM_CLICK: @@ -924,6 +922,6 @@ LRESULT wmNotifyChild (int wParam, int lParam) { break; } } - return super.wmNotifyChild (wParam, lParam); + return super.wmNotifyChild (hdr, wParam, lParam); } } |