[SHIMGVW] Use WM_GETMINMAXINFO instead of WM_SIZING

to limit window size. CORE-19358
This commit is contained in:
Katayama Hirofumi MZ 2023-12-08 14:30:35 +09:00
parent d178e6bb41
commit a500b513b0

View file

@ -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:
{