Windows file selectors contain an edit box as well as the Browse
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 22 Mar 2003 10:05:10 +0000 (10:05 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 22 Mar 2003 10:05:10 +0000 (10:05 +0000)
button; we must send EVENT_VALCHANGE when the edit box is manually
changed as well as when the file selector successfully completes.

git-svn-id: svn://svn.tartarus.org/sgt/putty@2975 cda61777-01e9-0310-a592-d414129be87e

winctrls.c

index 05c8f0d..771c0a1 100644 (file)
@@ -1899,6 +1899,8 @@ int winctrl_handle_command(struct dlgparam *dp, UINT msg,
        if (msg == WM_COMMAND && id == 2 &&
            (HIWORD(wParam) == BN_SETFOCUS || HIWORD(wParam) == BN_KILLFOCUS))
            winctrl_set_focus(ctrl, dp, HIWORD(wParam) == BN_SETFOCUS);
+       if (msg == WM_COMMAND && id == 1 && HIWORD(wParam) == EN_CHANGE)
+           ctrl->generic.handler(ctrl, dp, dp->data, EVENT_VALCHANGE);
        if (id == 2 &&
            (msg == WM_COMMAND &&
             (HIWORD(wParam) == BN_CLICKED ||