ui_win32_window.c needs to become a C++ file for DragAcceptFiles
This commit is contained in:
parent
d178f90cc1
commit
47abc22fe9
|
@ -732,7 +732,6 @@ UI
|
||||||
|
|
||||||
#if defined(_WIN32) && !defined(_XBOX)
|
#if defined(_WIN32) && !defined(_XBOX)
|
||||||
#include "../ui/drivers/ui_win32.c"
|
#include "../ui/drivers/ui_win32.c"
|
||||||
#include "../ui/drivers/win32/ui_win32_window.c"
|
|
||||||
#include "../ui/drivers/win32/ui_win32_msg_window.c"
|
#include "../ui/drivers/win32/ui_win32_msg_window.c"
|
||||||
#include "../ui/drivers/win32/ui_win32_application.c"
|
#include "../ui/drivers/win32/ui_win32_application.c"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -120,6 +120,14 @@ VIDEO CONTEXT
|
||||||
#include "../gfx/drivers_context/d3d_ctx.cpp"
|
#include "../gfx/drivers_context/d3d_ctx.cpp"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/*============================================================
|
||||||
|
UI
|
||||||
|
============================================================ */
|
||||||
|
|
||||||
|
#if defined(_WIN32) && !defined(_XBOX)
|
||||||
|
#include "../ui/drivers/win32/ui_win32_window.cpp"
|
||||||
|
#endif
|
||||||
|
|
||||||
/*============================================================
|
/*============================================================
|
||||||
VIDEO DRIVER
|
VIDEO DRIVER
|
||||||
============================================================ */
|
============================================================ */
|
||||||
|
|
|
@ -23,6 +23,23 @@
|
||||||
|
|
||||||
#include "../../ui_companion_driver.h"
|
#include "../../ui_companion_driver.h"
|
||||||
|
|
||||||
|
static enum ui_msg_window_response ui_msg_window_win32_response(ui_msg_window_state *state, UINT response)
|
||||||
|
{
|
||||||
|
switch (response)
|
||||||
|
{
|
||||||
|
case IDOK:
|
||||||
|
return UI_MSG_RESPONSE_OK;
|
||||||
|
case IDCANCEL:
|
||||||
|
return UI_MSG_RESPONSE_CANCEL;
|
||||||
|
case IDYES:
|
||||||
|
return UI_MSG_RESPONSE_YES;
|
||||||
|
case IDNO:
|
||||||
|
return UI_MSG_RESPONSE_NO;
|
||||||
|
}
|
||||||
|
|
||||||
|
return UI_MSG_RESPONSE_NA;
|
||||||
|
}
|
||||||
|
|
||||||
static enum ui_msg_window_response ui_msg_window_win32_error(ui_msg_window_state *state)
|
static enum ui_msg_window_response ui_msg_window_win32_error(ui_msg_window_state *state)
|
||||||
{
|
{
|
||||||
return UI_MSG_RESPONSE_CANCEL;
|
return UI_MSG_RESPONSE_CANCEL;
|
||||||
|
|
|
@ -77,6 +77,7 @@ static void ui_window_win32_set_title(void *data, char *buf)
|
||||||
|
|
||||||
static void ui_window_win32_set_droppable(void *data, bool droppable)
|
static 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;
|
ui_window_win32_t *window = (ui_window_win32_t*)data;
|
||||||
DragAcceptFiles(window->hwnd, droppable);
|
DragAcceptFiles(window->hwnd, droppable);
|
||||||
}
|
}
|
Loading…
Reference in New Issue