On 4월15일, 오후8시38분, Alexander Vassilev <[email protected]> wrote: > Withjazz wrote: > > Hi. > > > I'm working on the project using gecko1.9.1.2 with visual studio 2008 c > > ++. > > I've found article about disabling drag&drop files to the view using > > gecko at the Mozilla Developer Center. > > (https://developer.mozilla.org/en/Mozilla_Embedding_FAQ/How_do_I...) > > I added code to my project as the article written, but it doesn't work > > for me and even the breakpoint on the code that method from > > nsIClipboardDragDropHooks interface wasn't activated. > > Please give me some advice or help. > > > Thanks. > > Hi, > I have done this a few years ago but probably this code still works with > newer gecko versions. You have to add a "dragdrop" and a "draggesture" > event listeners to your frame. I have done it in C++ code, and not in > the javascript of the page itself, but I guess you can do it in > Javascript. For more information, you may want to check these pages for > example: > > http://www-archive.mozilla.org/xpfe/xptoolkit/dragDrop.htmlhttps://developer.mozilla.org/En/DOM/Window.ondragdrop > > Hope that helps > Regards > Alex
Thank you, Alex. But in case of me, it still doesn't work. However I'd got some hints from your answer. My problem was not to call nsIEditionSession::MakeWindowEditable function before setting 'cmd_clipboardDragDropHook'. Now I can handle drag&drop notification from 'nsIClipboardDragDropHooks' interface. _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
