[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
This commit is contained in:
parent
88a8889c15
commit
6594f4801b
@ -410,11 +410,19 @@ LRESULT ScintillaEditView::scintillaNew_Proc(HWND hwnd, UINT Message, WPARAM wPa
|
|||||||
if (wParam == VK_PRIOR || wParam == VK_NEXT)
|
if (wParam == VK_PRIOR || wParam == VK_NEXT)
|
||||||
{
|
{
|
||||||
// find hotspots
|
// find hotspots
|
||||||
|
/*
|
||||||
NMHDR nmhdr;
|
NMHDR nmhdr;
|
||||||
nmhdr.code = SCN_PAINTED;
|
nmhdr.code = SCN_PAINTED;
|
||||||
nmhdr.hwndFrom = _hSelf;
|
nmhdr.hwndFrom = _hSelf;
|
||||||
nmhdr.idFrom = ::GetDlgCtrlID(nmhdr.hwndFrom);
|
nmhdr.idFrom = ::GetDlgCtrlID(nmhdr.hwndFrom);
|
||||||
::SendMessage(_hParent, WM_NOTIFY, (WPARAM)LINKTRIGGERED, (LPARAM)&nmhdr);
|
::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;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user