Go through DragAcceptFiles function pointer for ui_win32_window too

This commit is contained in:
twinaphex 2017-08-09 16:32:08 +02:00
parent 2f832d145f
commit dfd2c45454

View File

@ -75,11 +75,14 @@ static void ui_window_win32_set_title(void *data, char *buf)
SetWindowText(window->hwnd, buf);
}
extern "C" VOID (WINAPI *DragAcceptFiles_func)(HWND, BOOL);
void ui_window_win32_set_droppable(void *data, bool droppable)
{
/* Minimum supported client: Windows XP, minimum supported server: Windows 2000 Server */
ui_window_win32_t *window = (ui_window_win32_t*)data;
DragAcceptFiles(window->hwnd, droppable);
if (DragAcceptFiles_func != NULL)
DragAcceptFiles_func(window->hwnd, droppable);
}
static bool ui_window_win32_focused(void *data)