From 32017d0cd200cca9f575e25cbd56f0f3f991ef9a Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 10 Sep 2013 08:54:20 +1000 Subject: Pass control ID with WM_NOTIFY for compatibility with other platforms. --- cocoa/ScintillaCocoa.mm | 2 +- cocoa/ScintillaView.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm index 57367fcac..8132bd8e0 100644 --- a/cocoa/ScintillaCocoa.mm +++ b/cocoa/ScintillaCocoa.mm @@ -1726,7 +1726,7 @@ void ScintillaCocoa::NotifyParent(SCNotification scn) { scn.nmhdr.hwndFrom = (void*) this; scn.nmhdr.idFrom = GetCtrlID(); - notifyProc(notifyObj, WM_NOTIFY, (uintptr_t) 0, (uintptr_t) &scn); + notifyProc(notifyObj, WM_NOTIFY, GetCtrlID(), (uintptr_t) &scn); } } diff --git a/cocoa/ScintillaView.h b/cocoa/ScintillaView.h index 6692a619b..02bdfac90 100644 --- a/cocoa/ScintillaView.h +++ b/cocoa/ScintillaView.h @@ -33,7 +33,7 @@ namespace Scintilla { *
* WM_COMMAND: HIWORD (wParam) = notification code, LOWORD (wParam) = control ID, lParam = ScintillaCocoa* *
- * WM_NOTIFY: wParam = 0 (no control ID), lParam = ptr to SCNotification structure, with hwndFrom set to ScintillaCocoa* + * WM_NOTIFY: wParam = control ID, lParam = ptr to SCNotification structure, with hwndFrom set to ScintillaCocoa* */ typedef void(*SciNotifyFunc) (intptr_t windowid, unsigned int iMessage, uintptr_t wParam, uintptr_t lParam); -- cgit v1.2.3