Drag&Drop Files into Game possible?
I have to make my game's window capable of reacting to drag&drop operations coming from the outside of the application (especially windows), like dragging a png-file from my desktop into my application (e.g. to be able to get its filepath).
I successfully tried adding an IWindowsMessageHandler to my FWindowsApplication in c++ but this does not seem to be the right way since I can't get any useful information out of it.
Am I missing something with the MessageHandler or is there any other way to solve my problem?
I solved the problem myself. I already had the right approach and this is how I got it working:
The DragQueryFile function that gives me the information i need is only available if the shellapi.h is included. This is only for Windows, make shure you surround all the platform specific code with #if PLATFORM_WINDOWS ... #endif
Follow this question
Once you sign in you will be able to subscribe for any updates here