Re: AxShDocVw and DragOver
- From: "Roy Soltoff" <rattlesnake0407@xxxxxxxxxxxxxxxx>
- Date: Thu, 2 Jun 2005 10:15:44 -0400
Still one further point: In my app, if I drag plain text over the webbrowser
control that is wrapped by my user control, the webbrowser is handling the
dragover as it shows the dragover mouse cursor (and I supose that Webbrowser
accepts only a string object). But as before, without being able to give it
my IDropTarget object, all is for naught.
I noticed from a point made in your first link below, that GetDropTarget is
called by mshtml simply to get the DropTarget object - probably once - and
not on every dragenter. Perhaps the call is made prior to my app being able
to connect up the interface? Perhaps GetDropTarget is called when the
AxShDocHost is initialized? This is certainly before I can hook my
IDocHostUIHandler into it using:
Try
' tell WebBrowser that we are its host
Dim obj As Object = wbrChart.GetOcx()
Dim oc As IOleObject = obj
oc.SetClientSite(Me)
wbrChart.RegisterAsDropTarget = True
Catch ex As Exception
End Try
Any light on this possibility?
""Jeffrey Tan[MSFT]"" <v-jetan@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:G$B983zZFHA.388@xxxxxxxxxxxxxxxxxxxxxxxx
> Hi Roy,
>
> Thanks for your feedback.
>
> I think you need some information of how to implement IDropTarget
interface
> in C#.
>
> In the link below, the community member provided a sample implement in C#
> with COM interop, for your information:
> http://itwriting.co.uk/phorum/read.php?f=3&i=265&t=265
>
> Also, the below article implemented IDropTarget interface in C++, however,
> the concept should be similiar in COM interop(note: the details
> implementation code can be found in the source code)
> "Drag And Drop between Window Controls"
> http://www.codeguru.com/Cpp/misc/misc/draganddrop/article.php/c349/
>
> Hope this helps
>
> Best regards,
> Jeffrey Tan
> Microsoft Online Partner Support
> Get Secure! - www.microsoft.com/security
> This posting is provided "as is" with no warranties and confers no rights.
>
.
- References:
- Re: AxShDocVw and DragOver
- From: "Jeffrey Tan[MSFT]"
- Re: AxShDocVw and DragOver
- From: Roy Soltoff
- Re: AxShDocVw and DragOver
- From: "Jeffrey Tan[MSFT]"
- Re: AxShDocVw and DragOver
- Prev by Date: Re: AxShDocVw and DragOver
- Next by Date: Re: Buffering transparent controls
- Previous by thread: Re: AxShDocVw and DragOver
- Next by thread: Re: AxShDocVw and DragOver
- Index(es):
Relevant Pages
|