mirror of
https://github.com/reactos/reactos.git
synced 2024-09-14 06:42:52 +00:00
Prevent the user from making the window too small.
svn path=/trunk/; revision=25212
This commit is contained in:
parent
d53810a92e
commit
3b7c2562ce
|
@ -272,6 +272,17 @@ LRESULT CALLBACK WndProc (HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case WM_SIZING:
|
||||||
|
{
|
||||||
|
LPRECT pRect = (LPRECT)lParam;
|
||||||
|
if (pRect->right-pRect->left < 400)
|
||||||
|
pRect->right = pRect->left + 400;
|
||||||
|
|
||||||
|
if (pRect->bottom-pRect->top < 300)
|
||||||
|
pRect->bottom = pRect->top + 300;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
case WM_SIZE:
|
case WM_SIZE:
|
||||||
{
|
{
|
||||||
int Split_Hozizontal = (HIWORD(lParam)-(45+60))/2 + 60;
|
int Split_Hozizontal = (HIWORD(lParam)-(45+60))/2 + 60;
|
||||||
|
|
Loading…
Reference in a new issue