diff options
author | Mataes <mataes2007@gmail.com> | 2019-11-04 22:52:17 +0300 |
---|---|---|
committer | Mataes <mataes2007@gmail.com> | 2019-11-04 22:52:40 +0300 |
commit | 4d6fa4f3f9fe692486a1e35cfe85a14ddac79d51 (patch) | |
tree | a10699427399a078a70c0c2351cfa6ce654edb71 /plugins/NewStory/src/history.cpp | |
parent | 7d716084840c4a704c856cbc7f7616ce3a0825a2 (diff) |
newstory: added hook for ME_DB_EVENT_EDITED
Diffstat (limited to 'plugins/NewStory/src/history.cpp')
-rw-r--r-- | plugins/NewStory/src/history.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/NewStory/src/history.cpp b/plugins/NewStory/src/history.cpp index 6723d7f48c..79d0a7678a 100644 --- a/plugins/NewStory/src/history.cpp +++ b/plugins/NewStory/src/history.cpp @@ -29,12 +29,20 @@ int evtEventDeleted(WPARAM wParam, LPARAM lParam) return 0; } +int evtEventEdited(WPARAM wParam, LPARAM lParam) +{ + HWND hwnd = WindowList_Find(hNewstoryWindows, (UINT_PTR)wParam); + SendMessage(hwnd, UM_EDITEVENT, wParam, lParam); + return 0; +} + void InitHistory() { hNewstoryWindows = WindowList_Create(); HookEvent(ME_DB_EVENT_ADDED, evtEventAdded); HookEvent(ME_DB_EVENT_DELETED, evtEventDeleted); + HookEvent(ME_DB_EVENT_EDITED, evtEventEdited); } void FreeHistory() |