comparison src/w32term.c @ 24265:c5f1a1deffbb

(construct_drag_n_drop): Call DraqQueryPoint before recording drop position.
author Andrew Innes <andrewi@gnu.org>
date Fri, 05 Feb 1999 17:49:04 +0000
parents 9ed2245a9b79
children f9d3288b66c3
comparison
equal deleted inserted replaced
24264:ffc2b7069315 24265:c5f1a1deffbb
1970 result->kind = drag_n_drop; 1970 result->kind = drag_n_drop;
1971 result->code = 0; 1971 result->code = 0;
1972 result->timestamp = msg->msg.time; 1972 result->timestamp = msg->msg.time;
1973 result->modifiers = msg->dwModifiers; 1973 result->modifiers = msg->dwModifiers;
1974 1974
1975 hdrop = (HDROP) msg->msg.wParam;
1976 DragQueryPoint (hdrop, &p);
1977
1975 p.x = LOWORD (msg->msg.lParam); 1978 p.x = LOWORD (msg->msg.lParam);
1976 p.y = HIWORD (msg->msg.lParam); 1979 p.y = HIWORD (msg->msg.lParam);
1977 ScreenToClient (msg->msg.hwnd, &p); 1980 ScreenToClient (msg->msg.hwnd, &p);
1978 XSETINT (result->x, p.x); 1981 XSETINT (result->x, p.x);
1979 XSETINT (result->y, p.y); 1982 XSETINT (result->y, p.y);
1980 1983
1981 hdrop = (HDROP) msg->msg.wParam;
1982 DragQueryPoint (hdrop, &p);
1983 num_files = DragQueryFile (hdrop, 0xFFFFFFFF, NULL, 0); 1984 num_files = DragQueryFile (hdrop, 0xFFFFFFFF, NULL, 0);
1984 files = Qnil; 1985 files = Qnil;
1985 1986
1986 for (i = 0; i < num_files; i++) 1987 for (i = 0; i < num_files; i++)
1987 { 1988 {