racket/gui win32: fix drag-and-drop onto frame
Closes PR 13109 Merge to v5.3.1
This commit is contained in:
parent
a414b34b14
commit
ebe0b64d47
|
@ -64,8 +64,6 @@
|
||||||
(define-shell32 DragAcceptFiles (_wfun _HWND _BOOL -> _void))
|
(define-shell32 DragAcceptFiles (_wfun _HWND _BOOL -> _void))
|
||||||
|
|
||||||
(define _HDROP _pointer)
|
(define _HDROP _pointer)
|
||||||
(define-shell32 DragQueryPoint (_wfun _HDROP (p : (_ptr o _POINT)) -> (r : _BOOL)
|
|
||||||
-> (if r p (failed 'DragQueryPoint))))
|
|
||||||
(define-shell32 DragQueryFileW (_wfun _HDROP _UINT _pointer _UINT -> _UINT))
|
(define-shell32 DragQueryFileW (_wfun _HDROP _UINT _pointer _UINT -> _UINT))
|
||||||
(define-shell32 DragFinish (_wfun _HDROP -> _void))
|
(define-shell32 DragFinish (_wfun _HDROP -> _void))
|
||||||
|
|
||||||
|
@ -438,7 +436,6 @@
|
||||||
|
|
||||||
(define/private (handle-drop-files wParam)
|
(define/private (handle-drop-files wParam)
|
||||||
(let* ([hdrop (cast wParam _WPARAM _HDROP)]
|
(let* ([hdrop (cast wParam _WPARAM _HDROP)]
|
||||||
[pt (DragQueryPoint hdrop)]
|
|
||||||
[count (DragQueryFileW hdrop #xFFFFFFFF #f 0)])
|
[count (DragQueryFileW hdrop #xFFFFFFFF #f 0)])
|
||||||
(for ([i (in-range count)])
|
(for ([i (in-range count)])
|
||||||
(let* ([len (DragQueryFileW hdrop i #f 0)]
|
(let* ([len (DragQueryFileW hdrop i #f 0)]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user