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:
parent
898e6bb120
commit
4b81484795
2 changed files with 12 additions and 11 deletions
|
@ -164,9 +164,6 @@ BOOL CALLBACK DialogProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam) {
|
||||||
case WM_SIZE:
|
case WM_SIZE:
|
||||||
{
|
{
|
||||||
if ((wParam == SIZE_MAXHIDE)||(wParam == SIZE_MAXSHOW)) return TRUE;
|
if ((wParam == SIZE_MAXHIDE)||(wParam == SIZE_MAXSHOW)) return TRUE;
|
||||||
}
|
|
||||||
case WM_SIZING:
|
|
||||||
{
|
|
||||||
RECT rSize;
|
RECT rSize;
|
||||||
if (hwndDlg == g_hwnd) {
|
if (hwndDlg == g_hwnd) {
|
||||||
GetClientRect(g_hwnd, &rSize);
|
GetClientRect(g_hwnd, &rSize);
|
||||||
|
@ -175,13 +172,17 @@ BOOL CALLBACK DialogProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam) {
|
||||||
dy = rSize.bottom - resizeRect.bottom;
|
dy = rSize.bottom - resizeRect.bottom;
|
||||||
EnumChildWindows(g_hwnd, DialogResize, (LPARAM)0);
|
EnumChildWindows(g_hwnd, DialogResize, (LPARAM)0);
|
||||||
resizeRect = rSize;
|
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;
|
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);
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
case WM_MAKENSIS_PROCESSCOMPLETE:
|
case WM_MAKENSIS_PROCESSCOMPLETE:
|
||||||
{
|
{
|
||||||
if (g_hThread) {
|
if (g_hThread) {
|
||||||
|
|
|
@ -141,8 +141,8 @@ BEGIN
|
||||||
WS_VSCROLL,7,4,345,186
|
WS_VSCROLL,7,4,345,186
|
||||||
CONTROL "",IDC_STATIC,"Static",SS_ETCHEDHORZ,7,202,346,1
|
CONTROL "",IDC_STATIC,"Static",SS_ETCHEDHORZ,7,202,346,1
|
||||||
LTEXT "",IDC_VERSION,7,212,200,12,WS_DISABLED
|
LTEXT "",IDC_VERSION,7,212,200,12,WS_DISABLED
|
||||||
DEFPUSHBUTTON "Clo&se",IDC_CLOSE,301,208,49,15
|
DEFPUSHBUTTON "Clo&se",IDC_CLOSE,296,208,49,15
|
||||||
PUSHBUTTON "&Test",IDC_TEST,245,208,50,15,WS_DISABLED
|
PUSHBUTTON "&Test",IDC_TEST,240,208,50,15,WS_DISABLED
|
||||||
END
|
END
|
||||||
|
|
||||||
DLG_ABOUT DIALOG DISCARDABLE 0, 0, 235, 86
|
DLG_ABOUT DIALOG DISCARDABLE 0, 0, 235, 86
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue