richedit: Don't allow recursive EN_REQUESTRESIZE notifications.
This commit is contained in:
parent
c2631d8537
commit
13f86afe1f
|
@ -521,9 +521,11 @@ ME_SendRequestResize(ME_TextEditor *editor, BOOL force)
|
||||||
info.nmhdr.code = EN_REQUESTRESIZE;
|
info.nmhdr.code = EN_REQUESTRESIZE;
|
||||||
info.rc = rc;
|
info.rc = rc;
|
||||||
info.rc.bottom = editor->nTotalLength;
|
info.rc.bottom = editor->nTotalLength;
|
||||||
|
|
||||||
|
editor->nEventMask &= ~ENM_REQUESTRESIZE;
|
||||||
SendMessageW(GetParent(editor->hWnd), WM_NOTIFY,
|
SendMessageW(GetParent(editor->hWnd), WM_NOTIFY,
|
||||||
info.nmhdr.idFrom, (LPARAM)&info);
|
info.nmhdr.idFrom, (LPARAM)&info);
|
||||||
|
editor->nEventMask |= ENM_REQUESTRESIZE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue