mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-02 13:16:12 +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
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue