On 03/01/2013 at 16:13, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R14.032
Platform: Windows ;
Language(s) : C++ ;
---------
Hi folks,
I'm trying to simulate a file drag'n'drop from my user area.
The goal is to get the same behavior as if an importable file (I'm using a c4d for testing) was dragged directly from the explorer.
The documentation does not tell much about HandleMouseDrag so I just tried the following:
Bool InputEvent(const BaseContainer& msg)
{
if (msg.GetLong(BFM_INPUT_DEVICE) == BFM_INPUT_MOUSE)
{
if (msg.GetLong(BFM_INPUT_CHANNEL) == BFM_INPUT_MOUSELEFT)
{
Filename file = "D:\\test.c4d";
//HandleMouseDrag(msg, DRAGTYPE_FILENAME_SCENE, &file;, 0L);
HandleMouseDrag(msg, DRAGTYPE_FILENAME_OTHER, &file;, 0L);
}
}
}
Any idea why this is not working?
Thanks for any help!