RE: MFC ActiveX control(.ocx file) on Internet exporer: File drag and drop

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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.

.



Relevant Pages

  • RE: TreeView multiple selections
    ... The problem is when we customize a control, we don't know XXX or YYY. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.general)
  • Re: <input type=file , tag.
    ... I know we are very limited to customize on the control. ... gmail has implemented a file attachment without showing the browse button. ... >> fileupload object.This opens the select files dialog box of file upload ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: changing the width of the font drop-down menu box?
    ... Open the toolbars customize dialog and leave it ... Click the font name control and ... with two arrows you can drag the right edge to resize this control. ...
    (microsoft.public.excel.misc)
  • Re: Knowledge management (for Embedded engineers)
    ... cost data that hadn't been required upon installation. ... that required getting the vendor's programmers out but much of it could ... the vendor or this enterprise system was how much we could customize ... to control the data that "has to be" controlled, ...
    (comp.arch.embedded)
  • Re: Access 2010 Web Form - tab order
    ... and the fact that we have control layouts to move controls together as a group are actually two distinct issues. ... I think for existing applications and most things I have, I do prefer simple design mode, but some of these new features can really help and terms of productivity. ... They could've perhaps built something that took an existing access form and then had some some type of special ActiveX or client program you install on your browser that renders that form. ... Keep in mind if the form you specify in the browse two command does not have to be part of the current navigation control set. ...
    (comp.databases.ms-access)