Commit 50009c4a authored by Alexandre Julliard's avatar Alexandre Julliard

riched20: Update rectangle on WM_WINDOWPOSCHANGED instead of WM_SIZE.

Some applications don't forward WM_SIZE to the window proc.
parent b3d1b1f2
......@@ -4409,10 +4409,12 @@ LRESULT ME_HandleMessage(ME_TextEditor *editor, UINT msg, WPARAM wParam,
return 0;
case WM_SETREDRAW:
goto do_default;
case WM_SIZE:
case WM_WINDOWPOSCHANGED:
{
RECT clientRect;
WINDOWPOS *winpos = (WINDOWPOS *)lParam;
if (winpos->flags & SWP_NOCLIENTSIZE) goto do_default;
ITextHost_TxGetClientRect(editor->texthost, &clientRect);
if (editor->bDefaultFormatRect) {
ME_SetDefaultFormatRect(editor);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment