From 6594f4801be06598885399d9f03c0bbb779813f5 Mon Sep 17 00:00:00 2001 From: Don Ho Date: Wed, 17 Dec 2014 23:10:21 +0000 Subject: [PATCH] [BUG_FIXED] Fix a crash issue while typing Page up / Page down. git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1310 f5eea248-9336-0410-98b8-ebc06183d4e3 --- PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp b/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp index ceeeff73..e15ac336 100644 --- a/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp +++ b/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp @@ -410,11 +410,19 @@ LRESULT ScintillaEditView::scintillaNew_Proc(HWND hwnd, UINT Message, WPARAM wPa if (wParam == VK_PRIOR || wParam == VK_NEXT) { // find hotspots + /* NMHDR nmhdr; nmhdr.code = SCN_PAINTED; nmhdr.hwndFrom = _hSelf; nmhdr.idFrom = ::GetDlgCtrlID(nmhdr.hwndFrom); ::SendMessage(_hParent, WM_NOTIFY, (WPARAM)LINKTRIGGERED, (LPARAM)&nmhdr); + */ + SCNotification notification = {}; + notification.nmhdr.code = SCN_PAINTED; + notification.nmhdr.hwndFrom = _hSelf; + notification.nmhdr.idFrom = ::GetDlgCtrlID(_hSelf); + ::SendMessage(_hParent, WM_NOTIFY, (WPARAM)LINKTRIGGERED, (LPARAM)¬ification); + } break; }