Prevent the user from making the window too small.

svn path=/trunk/; revision=25212
This commit is contained in:
Maarten Bosma 2006-12-23 18:07:37 +00:00
parent d53810a92e
commit 3b7c2562ce

View file

@ -272,6 +272,17 @@ LRESULT CALLBACK WndProc (HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam)
}
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:
{
int Split_Hozizontal = (HIWORD(lParam)-(45+60))/2 + 60;