RE: MFC ActiveX control(.ocx file) on Internet exporer: File drag and drop
- From: v-garych@xxxxxxxxxxxxxxxxxxxx ("Gary Chang[MSFT]")
- Date: Tue, 21 Jun 2005 10:06:56 GMT
Hi Charlie,
Based on your description of problem, I understand you want to prevent IE
processing the file drag&drop event and let your ActiveX control to handle
it. Please let me know if I have misunderstood anything.
If so, I think you need to customize the browser instead, for this is the
default behavior of the IE browser, it will process and eat the drag&drop
event which the embedded control wanted.
If you can customize the IE, I suggest you get IWebBrowser2 Interface by
CLSID_WebBrowser at first, then call the
IWebBrowser2::RegisterAsDropTarget, passing in VARIANT_TRUE, to prevent any
drag-and-drop operations on your WebBrowser Control instance.
Since customizing is not an easy work, please refer to the following MSDN
doc for detailed info:
WebBrowser Customization
http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/hosting/
wbcustomization.asp
Thanks!
Best regards,
Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn
This posting is provided "AS IS" with no warranties, and confers no rights.
.
- References:
- Prev by Date: about current running process
- Next by Date: Re: File Version without GetFileVersionInfo
- Previous by thread: MFC ActiveX control(.ocx file) on Internet exporer: File drag and drop
- Next by thread: Possible Solutions for a Tab Like Dialog
- Index(es):
Relevant Pages
|