Smoother resizing

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1061 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
rainwater 2002-09-20 02:57:33 +00:00
parent 898e6bb120
commit 4b81484795
2 changed files with 12 additions and 11 deletions

View file

@ -164,9 +164,6 @@ BOOL CALLBACK DialogProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam) {
case WM_SIZE:
{
if ((wParam == SIZE_MAXHIDE)||(wParam == SIZE_MAXSHOW)) return TRUE;
}
case WM_SIZING:
{
RECT rSize;
if (hwndDlg == g_hwnd) {
GetClientRect(g_hwnd, &rSize);
@ -175,11 +172,15 @@ BOOL CALLBACK DialogProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam) {
dy = rSize.bottom - resizeRect.bottom;
EnumChildWindows(g_hwnd, DialogResize, (LPARAM)0);
resizeRect = rSize;
}
return TRUE;
}
case WM_SIZING:
{
InvalidateRect(g_hwnd,&g_griprect,TRUE);
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;
}
case WM_MAKENSIS_PROCESSCOMPLETE:

View file

@ -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,301,208,49,15
PUSHBUTTON "&Test",IDC_TEST,245,208,50,15,WS_DISABLED
DEFPUSHBUTTON "Clo&se",IDC_CLOSE,296,208,49,15
PUSHBUTTON "&Test",IDC_TEST,240,208,50,15,WS_DISABLED
END
DLG_ABOUT DIALOG DISCARDABLE 0, 0, 235, 86