Outlook contact drag ID

S

Stephen

Hi,

I don't know the best group to ask this so I'll ask here and hope for
the best.

Does any know, or can point me to, the drag ID used when dragging a
contact from Outlook. I've managed to drag an entry from the Windows
Address book using the drag ID '~FILE', but Outlook doesn't seem to
use the same drag ID. Strage, as you can drag a contact to a directory
and it creates a file with a .msg extension.

Thanks.
Steve
Stephen Bassett
(Remove .nospam for my real email address)
 
D

Dmitry Streblechenko

I am not sure what you mean by "drag id".
When dragging messages from Outlook, it provides several drag/drop formats,
including file, text and a couple of internal formats.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
S

Stephen

Ok, the Drag ID is a string associated with a control. Up to 16
strings can be associated (at least in the Clarion language I'm using)
with a control. When dragging something from one application, Windows
looks at the drag ID's of the controls that the cursor is passing
over. If none of the strings match any of the ID strings of the app
you are dragging from, then the mouse cursor shows the "Can't drop
here" cursor. If any of them do match, then the cursor shows the Can
Drop Here cursor. If you then drop the item, the receiving app is sent
a Windows message informing it of the action.

I'm looking for the string or strings that Outlook uses as its' Drag
ID's. From there, I _should_ be able to progress.

As I mentioned in the original request, Explorer uses the ID "FILE" as
its' drag ID (or at lest one of it's IDs) so my app can detect when a
file drag and drop has occurred if I use FILE as one of the ID
strings. Windows Address Book also seems to use FILE as at least one
of its' drag IDs, so my app receives a filename as part of the drop
notification which specifies the file that WAB has just created in the
temp directory for me.

I hope I haven't waffled on too much, or made too many mistakes in my
explanation.

Steve

I am not sure what you mean by "drag id".
When dragging messages from Outlook, it provides several drag/drop formats,
including file, text and a couple of internal formats.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

Stephen Bassett
(Remove .nospam for my real email address)
 
D

Dmitry Streblechenko

OK, so that's a Clarion thing: I do know for sure that file format is one of
the available formats when dragging from Outlook (that's how MSG files get
created in Explorer).
Is there any way to enumerate the available drag formats in Clarion?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
S

Stephen

It doesn't have any available drag formats as far as I can tell. It
simply receives drag and dropp Windows events.

When using a higher level language, that language probably
encapsulates this sort of thing. Internally though, it is doing what
I'm trying to do. It's just receiving a Windows message telling it
that something has dropped something on this control, and gives a
pointer to a block of memory containing whatever the source app has
decided to give the target. In Explorer and WAB's case, a pointer to a
null terminated string containing a comma-separated list of filenames
(if multiple items were dragged).

Ah well, I'll just have to find it some other way. I'll see if I can
find a program written in C or something else fairly low level that
implements drag n drop with Outlook.

OK, so that's a Clarion thing: I do know for sure that file format is one of
the available formats when dragging from Outlook (that's how MSG files get
created in Explorer).
Is there any way to enumerate the available drag formats in Clarion?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

Stephen Bassett
(Remove .nospam for my real email address)
 
D

Dmitry Streblechenko

Actually multiple drag/drop formats are exposed by most Office apps. My bet
is Clarion only picks up the first available one.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
S

Stephen

Back from Holiday, and have found some more info on drag and drop. It
seems that the DragID I've been on about is a Clarion invention and is
not relevant to any other language. Apparently I need to look into OLE
drag and drop, so I'll start my investigation into this.

Thanks for the help anyway.

Steve

Actually multiple drag/drop formats are exposed by most Office apps. My bet
is Clarion only picks up the first available one.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

Stephen Bassett
(Remove .nospam for my real email address)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top