diff options
author | StapleButter <thetotalworm@gmail.com> | 2017-09-23 03:39:09 +0200 |
---|---|---|
committer | StapleButter <thetotalworm@gmail.com> | 2017-09-23 03:39:09 +0200 |
commit | f52322ee208de4af3ed28b1cfbf8404951eab0a2 (patch) | |
tree | 7bd98258283839fc1c00cb2b3aa797b2a6c3968d /src/libui_sdl/libui/windows/window.cpp | |
parent | 14b7cf1987f01b706a902d2bafdd4e72bb88889a (diff) |
* support for dragdrop
* support for loading ROMs via command line (except it will try to get the BIOS/firmware from where the ROM is. derp)
* re-add missing BIOS/firmware dialog. fix libui to allow dialogs without a parent window.
Diffstat (limited to 'src/libui_sdl/libui/windows/window.cpp')
-rw-r--r-- | src/libui_sdl/libui/windows/window.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libui_sdl/libui/windows/window.cpp b/src/libui_sdl/libui/windows/window.cpp index 07496b3..e126efc 100644 --- a/src/libui_sdl/libui/windows/window.cpp +++ b/src/libui_sdl/libui/windows/window.cpp @@ -482,6 +482,12 @@ void uiWindowSetMargined(uiWindow *w, int margined) windowRelayout(w); } + +void uiWindowSetDropTarget(uiWindow* w, int drop) +{ + DragAcceptFiles(w->hwnd, drop?TRUE:FALSE); +} + // see http://blogs.msdn.com/b/oldnewthing/archive/2003/09/11/54885.aspx and http://blogs.msdn.com/b/oldnewthing/archive/2003/09/13/54917.aspx // TODO use clientSizeToWindowSize() static void setClientSize(uiWindow *w, int width, int height, BOOL hasMenubar, DWORD style, DWORD exstyle) |