LINK, dirreq, filereq and browse button in dirpage can be opened using ENTER KEY (WM_COMMAND events forward to inner dialogs), fixed problem with focus on Close/Finish button which was generating wierd beeps if user attempted to finish the installer with ENTER key.

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2707 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
ramon18 2003-07-10 00:28:05 +00:00
parent 9396324581
commit 8bf75b3634
5 changed files with 88 additions and 76 deletions

View file

@ -453,6 +453,7 @@ nextPage:
else {
if (g_flags.abort) SetFocus(m_hwndCancel);
else if (g_flags.autoclose) goto nextPage;
else SetFocus(m_hwndOK); // without focus button, the system Beeps every time user press one key
return 0;
}
@ -499,6 +500,7 @@ nextPage:
if (uMsg == WM_NOTIFY_CUSTOM_READY) {
DestroyWindow(m_curwnd);
m_curwnd = (HWND)wParam;
}
if (uMsg == WM_CLOSE)
{
@ -541,6 +543,11 @@ nextPage:
}
}
}
else
{
// Forward WM_COMMANDs to inner dialogs, can be custom ones
SendMessage(m_curwnd, uMsg, wParam, lParam);
}
}
return HandleStaticBkColor();
}