riched20: Update rectangle on WM_WINDOWPOSCHANGED instead of WM_SIZE.

Some applications don't forward WM_SIZE to the window proc.
This commit is contained in:
Alexandre Julliard 2015-04-28 19:57:37 +09:00
parent b3d1b1f239
commit 50009c4a95

View file

@ -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);