some more information on the EN_MSGFILTER hack
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5184 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
8786a4494c
commit
ba9dbe7dab
1 changed files with 7 additions and 0 deletions
|
@ -780,6 +780,13 @@ static BOOL CALLBACK LicenseProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM
|
|||
//push button. When the user presses return ask the outer dialog to move
|
||||
//the installer onto the next page. MSDN docs say return non-zero if the
|
||||
//rich edit control should NOT process this message, hence the return 1.
|
||||
//
|
||||
//This is required because the RichEdit control is eating all the key hits.
|
||||
//It does try to release some and convert VK_ESCAPE to WM_CLOSE, VK_ENTER
|
||||
//to a push on the default button and VM_TAB to WM_NEXTDLGCTL. But sadly it
|
||||
//it sends all of these messages to its parent instead of just letting the
|
||||
//dialog manager handle them. Instead of properly handling WM_GETDLGCODE,
|
||||
//it mimics the dialog manager.
|
||||
if (nmhdr->code==EN_MSGFILTER)
|
||||
{
|
||||
if (msgfilter->msg==WM_KEYDOWN)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue