Re: How determine the Source application of an OLE Drag & Drop?



DnD does _not_ use the clipboard, not sure how did you come
up with such an idea... The central idea is that the target does
_not_ know the source - it doesn't need to. All you need to do
is inspect the data and reject it if you can't make sense out of it.

--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@xxxxxxxx
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================

"Al Koch" <AlKoch@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:vfdb32tqqri80fst5ptq8rufqngflue2bb@xxxxxxxxxx
Hello,

My application serves as a Drop Target so that other applications can drop
data onto it. I need to determine what application was
the Drop Source. It is my understanding that OLE D&D uses the clipboard
for its operations. If that is correct it seems that
(unless there is a straightforward way to determine this) that it ought to
be possible to determine the source by way of the
clipboard. (I can determine the app that places something on the
Clipboard with ::GetClipboardOwner() followed by a bunch of
additional work.) But I don't see how to do this for D&D. Since the Drag
Source can be one of many other apps I have no control
over what is put in the data that is drug. How can this be done?

Thank you,
Al Koch
AlKoch@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx


.



Relevant Pages

  • Re: selecting from clipboard
    ... On Dec 12, 8:48 am, Jean-Guy Marcil ... You mean wheh pasting the text from the dummy document back into the target ... It happens when pasting a full paragraph into the middle of another ... Try not to use the clipboard, as I suggested, this way, the user clipboard ...
    (microsoft.public.word.vba.general)
  • Re: How determine the Source application of an OLE Drag & Drop?
    ... My application serves as a Drop Target so that other applications can drop ... It is my understanding that OLE D&D uses the clipboard ... (I can determine the app that places something on the ...
    (microsoft.public.win32.programmer.kernel)
  • How determine the Source application of an OLE Drag & Drop?
    ... My application serves as a Drop Target so that other applications can drop data onto it. ... It is my understanding that OLE D&D uses the clipboard for its operations. ... (I can determine the app that places something on the Clipboard with::GetClipboardOwner() ...
    (microsoft.public.win32.programmer.kernel)
  • How determine the Source application of an OLE Drag & Drop?
    ... My application serves as a Drop Target so that other applications can drop data onto it. ... It is my understanding that OLE D&D uses the clipboard for its operations. ... (I can determine the app that places something on the Clipboard with::GetClipboardOwner() ...
    (microsoft.public.win32.programmer.ole)
  • Re: Active cell highlight
    ... Lots of code in macros can destroy the clipboard. ... have to make--keep the clipboard and lose the formatting or keep the formatting ... >> Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range) ... >> If Not OldCell Is Nothing Then ...
    (microsoft.public.excel.misc)

Loading