diff --git a/Contrib/Makensisw/Readme.txt b/Contrib/Makensisw/Readme.txt index 1a6660d8..faf87fbb 100644 --- a/Contrib/Makensisw/Readme.txt +++ b/Contrib/Makensisw/Readme.txt @@ -153,6 +153,7 @@ Version History - Bunch of other stuff not worth mentioning - Added some simple tool tips - Added Context Menu in log window + - Added resize gripper Copyright Information diff --git a/Contrib/Makensisw/makensisw.cpp b/Contrib/Makensisw/makensisw.cpp index 00c59199..4ae66d90 100644 --- a/Contrib/Makensisw/makensisw.cpp +++ b/Contrib/Makensisw/makensisw.cpp @@ -25,6 +25,7 @@ #include "noclib.h" static RECT resizeRect; +static RECT g_griprect; static int dx; static int dy; @@ -91,6 +92,17 @@ BOOL CALLBACK DialogProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam) { CompileNSISScript(); return TRUE; } + case WM_PAINT: + { + PAINTSTRUCT ps; + GetClientRect(g_hwnd, &g_griprect); + HDC hdc = BeginPaint(g_hwnd, &ps); + g_griprect.left = g_griprect.right - GetSystemMetrics(SM_CXVSCROLL); + g_griprect.top = g_griprect.bottom - GetSystemMetrics(SM_CYVSCROLL); + DrawFrameControl(hdc, &g_griprect, DFC_SCROLL, DFCS_SCROLLSIZEGRIP); + EndPaint(g_hwnd,&ps); + return TRUE; + } case WM_DESTROY: { SaveWindowPos(g_hwnd); @@ -158,12 +170,15 @@ BOOL CALLBACK DialogProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam) { RECT rSize; if (hwndDlg == g_hwnd) { GetClientRect(g_hwnd, &rSize); - if (((rSize.right==0)&&(rSize.bottom==0))||((resizeRect.right==0)&&(resizeRect.bottom==0))) - return TRUE; + if (((rSize.right==0)&&(rSize.bottom==0))||((resizeRect.right==0)&&(resizeRect.bottom==0))) return TRUE; dx = rSize.right - resizeRect.right; dy = rSize.bottom - resizeRect.bottom; EnumChildWindows(g_hwnd, DialogResize, (LPARAM)0); resizeRect = rSize; + GetClientRect(g_hwnd, &g_griprect); + g_griprect.left = g_griprect.right - GetSystemMetrics(SM_CXVSCROLL); + g_griprect.top = g_griprect.bottom - GetSystemMetrics(SM_CYVSCROLL); + InvalidateRect(g_hwnd,&g_griprect,TRUE); } return TRUE; } diff --git a/Contrib/Makensisw/resource.rc b/Contrib/Makensisw/resource.rc index 60f6dfff..65b063b2 100644 --- a/Contrib/Makensisw/resource.rc +++ b/Contrib/Makensisw/resource.rc @@ -141,8 +141,8 @@ BEGIN WS_VSCROLL,7,4,345,186 CONTROL "",IDC_STATIC,"Static",SS_ETCHEDHORZ,7,202,346,1 LTEXT "",IDC_VERSION,7,212,200,12,WS_DISABLED - DEFPUSHBUTTON "Clo&se",IDC_CLOSE,303,208,49,15 - PUSHBUTTON "&Test",IDC_TEST,247,208,50,15,WS_DISABLED + DEFPUSHBUTTON "Clo&se",IDC_CLOSE,301,208,49,15 + PUSHBUTTON "&Test",IDC_TEST,245,208,50,15,WS_DISABLED END DLG_ABOUT DIALOG DISCARDABLE 0, 0, 235, 86