Dropping emails onto C++ MFC application
-
Hi all, I am writing a little program in which I also work with emails. In order to do so, I want to be able to drop emails onto my dialog. I added all the necessary stuff (like ON_WM_DROFILES() and all that). This all works fine when I drag a file from an explorer window onto my dialog. However, when I try to drag an Outlook email message, this cannot be dropped on my dialog (The cursor remains being the "unable to drop here" icon). When I drag it onto the same explorer window, it does allow dropping there and then causes an .msg type of file. I would like that file (or information from which I can create such a file) to be dropped onto my dialog directly. Any ideas on how to allow dropping of email messages? Thanks in advance, William.
-
Hi all, I am writing a little program in which I also work with emails. In order to do so, I want to be able to drop emails onto my dialog. I added all the necessary stuff (like ON_WM_DROFILES() and all that). This all works fine when I drag a file from an explorer window onto my dialog. However, when I try to drag an Outlook email message, this cannot be dropped on my dialog (The cursor remains being the "unable to drop here" icon). When I drag it onto the same explorer window, it does allow dropping there and then causes an .msg type of file. I would like that file (or information from which I can create such a file) to be dropped onto my dialog directly. Any ideas on how to allow dropping of email messages? Thanks in advance, William.
I recommend using OLE Drag and Drop[^] instead of listening for WM_DROPFILES.
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > "It doesn't work, fix it" does not qualify as a bug report. < > Amazing what new features none of the programmers working on the project ever heard of you can learn about when reading what the marketing guys wrote about it. <