On 08/31/12 18:18, guyingpinming wrote:
> I'm working with a project using fltk to construct a gui,but now I want
> the exe to support the operation of dropping files,that is,if I drop a file
> to the menuWindow,the software can automatically open the file with the right
> format(the file itself is support by the software).
> How can I manage to realize it?It's like enable a window with the property
> of Accept Files and response to the Message WM_DROPFILES.I wonder wether it's
> realible for fltk to support that.
> Thanks a lot for your replies.
Try compiling the examples/howto-drag-and-drop application as a console
app
(/subsystem:console), and then drag a file from a folder browser into
the green
"..to here" box.. it should print the filename that is dropped, which
should
show you how you can use that to load a file..
I tried it on linux and it worked OK.. I'd like to think it would work
the same
on windows..
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk