mirror of
https://github.com/reactos/reactos.git
synced 2025-06-10 12:24:48 +00:00
[SHIMGVW] Use WM_GETMINMAXINFO instead of WM_SIZING
to limit window size. CORE-19358
This commit is contained in:
parent
d178e6bb41
commit
a500b513b0
1 changed files with 5 additions and 8 deletions
|
@ -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:
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue