https://git.reactos.org/?p=reactos.git;a=commitdiff;h=a500b513b0d0c8ed5f8b6…
commit a500b513b0d0c8ed5f8b62e18c85259f6a6ecff9
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Fri Dec 8 14:30:35 2023 +0900
Commit: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
CommitDate: Fri Dec 8 14:30:35 2023 +0900
[SHIMGVW] Use WM_GETMINMAXINFO instead of WM_SIZING
to limit window size. CORE-19358
---
dll/win32/shimgvw/shimgvw.c | 13 +++++--------
1 file changed, 5 insertions(+), 8 deletions(-)
diff --git a/dll/win32/shimgvw/shimgvw.c b/dll/win32/shimgvw/shimgvw.c
index 9cbea84cec3..6e04d71bcfc 100644
--- a/dll/win32/shimgvw/shimgvw.c
+++ b/dll/win32/shimgvw/shimgvw.c
@@ -1136,15 +1136,12 @@ ImageView_WndProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM
lParam)
}
break;
}
- case WM_SIZING:
+ case WM_GETMINMAXINFO:
{
- LPRECT pRect = (LPRECT)lParam;
- if (pRect->right-pRect->left < 350)
- pRect->right = pRect->left + 350;
-
- if (pRect->bottom-pRect->top < 290)
- pRect->bottom = pRect->top + 290;
- return TRUE;
+ MINMAXINFO *pMMI = (MINMAXINFO*)lParam;
+ pMMI->ptMinTrackSize.x = 350;
+ pMMI->ptMinTrackSize.y = 290;
+ return 0;
}
case WM_SIZE:
{