mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 20:30:01 +00:00
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:
parent
b3d1b1f239
commit
50009c4a95
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user