richedit: Don't allow recursive EN_REQUESTRESIZE notifications.

This commit is contained in:
Eric Pouech 2008-01-01 22:03:52 +01:00 committed by Alexandre Julliard
parent c2631d8537
commit 13f86afe1f
1 changed files with 3 additions and 1 deletions

View File

@ -521,9 +521,11 @@ ME_SendRequestResize(ME_TextEditor *editor, BOOL force)
info.nmhdr.code = EN_REQUESTRESIZE;
info.rc = rc;
info.rc.bottom = editor->nTotalLength;
editor->nEventMask &= ~ENM_REQUESTRESIZE;
SendMessageW(GetParent(editor->hWnd), WM_NOTIFY,
info.nmhdr.idFrom, (LPARAM)&info);
editor->nEventMask |= ENM_REQUESTRESIZE;
}
}
}