Module: wine Branch: master Commit: 50009c4a95e10e0d4e0a3a1aff96b1848422a89e URL: http://source.winehq.org/git/wine.git/?a=commit;h=50009c4a95e10e0d4e0a3a1aff...
Author: Alexandre Julliard julliard@winehq.org Date: Tue Apr 28 19:57:37 2015 +0900
riched20: Update rectangle on WM_WINDOWPOSCHANGED instead of WM_SIZE.
Some applications don't forward WM_SIZE to the window proc.
---
dlls/riched20/editor.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c index a4403ca..f355f33 100644 --- a/dlls/riched20/editor.c +++ b/dlls/riched20/editor.c @@ -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);