racket/gui win32: fix duplicate pre- events for controls

original commit: 7ddd99cf52c5476abead64a23bf441a21dd15507
This commit is contained in:
Matthew Flatt 2012-10-02 07:16:53 -06:00
parent ed25173112
commit 2eb1a30a2e

View File

@ -30,8 +30,6 @@
(super-new)
(define/public (ctlproc w msg wParam lParam default)
(if (try-mouse w msg wParam lParam)
0
(cond
[(= msg WM_SETFOCUS)
(queue-window-event this (lambda () (on-set-focus)))
@ -40,7 +38,7 @@
(queue-window-event this (lambda () (on-kill-focus)))
(default w msg wParam lParam)]
[else
(wndproc-for-ctlproc w msg wParam lParam default)])))
(wndproc-for-ctlproc w msg wParam lParam default)]))
(define/public (wndproc-for-ctlproc w msg wParam lParam default)
(wndproc w msg wParam lParam default))))