From 3b7c2562cee59f4bb8898d719147a4c4ac885ec3 Mon Sep 17 00:00:00 2001 From: Maarten Bosma Date: Sat, 23 Dec 2006 18:07:37 +0000 Subject: [PATCH] Prevent the user from making the window too small. svn path=/trunk/; revision=25212 --- reactos/base/applications/downloader/main.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/reactos/base/applications/downloader/main.c b/reactos/base/applications/downloader/main.c index 5d26823e0c1..276e105c08d 100644 --- a/reactos/base/applications/downloader/main.c +++ b/reactos/base/applications/downloader/main.c @@ -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;