#include "termhooks.h"
#include <commdlg.h>
+#include <shellapi.h>
extern void abort ();
extern void free_frame_menubar ();
SetWindowLong (hwnd, WND_SCROLLBAR_INDEX, f->output_data.w32->vertical_scroll_bar_extra);
SetWindowLong (hwnd, WND_BACKGROUND_INDEX, f->output_data.w32->background_pixel);
+ /* Enable drag-n-drop. */
+ DragAcceptFiles (hwnd, TRUE);
+
/* Do this to discard the default setting specified by our parent. */
ShowWindow (hwnd, SW_HIDE);
}
my_post_msg (&wmsg, hwnd, msg, wParam, lParam);
return 0;
+ case WM_DROPFILES:
+ wmsg.dwModifiers = w32_get_modifiers ();
+ my_post_msg (&wmsg, hwnd, msg, wParam, lParam);
+ return 0;
+
case WM_TIMER:
/* Flush out saved messages if necessary. */
if (wParam == mouse_button_timer)
}
case WM_EMACS_DESTROYWINDOW:
+ DragAcceptFiles ((HWND) wParam, FALSE);
return DestroyWindow ((HWND) wParam);
case WM_EMACS_TRACKPOPUPMENU: