diff options
Diffstat (limited to 'cocoa/ScintillaCocoa.mm')
| -rw-r--r-- | cocoa/ScintillaCocoa.mm | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm index 518447851..2c827e3c7 100644 --- a/cocoa/ScintillaCocoa.mm +++ b/cocoa/ScintillaCocoa.mm @@ -1474,7 +1474,8 @@ void ScintillaCocoa::RegisterNotifyCallback(intptr_t windowid, SciNotifyFunc cal  void ScintillaCocoa::NotifyChange()  {    if (notifyProc != NULL) -    notifyProc(notifyObj, WM_COMMAND, (uintptr_t) (SCEN_CHANGE << 16), (uintptr_t) this); +    notifyProc(notifyObj, WM_COMMAND, Platform::LongFromTwoShorts(GetCtrlID(), SCEN_CHANGE), +	       (uintptr_t) this);  }  //-------------------------------------------------------------------------------------------------- @@ -1482,7 +1483,8 @@ void ScintillaCocoa::NotifyChange()  void ScintillaCocoa::NotifyFocus(bool focus)  {    if (notifyProc != NULL) -    notifyProc(notifyObj, WM_COMMAND, (uintptr_t) ((focus ? SCEN_SETFOCUS : SCEN_KILLFOCUS) << 16), (uintptr_t) this); +    notifyProc(notifyObj, WM_COMMAND, Platform::LongFromTwoShorts(GetCtrlID(), (focus ? SCEN_SETFOCUS : SCEN_KILLFOCUS)), +	       (uintptr_t) this);  }  //-------------------------------------------------------------------------------------------------- | 
