[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform.swt] Re: Implementing ActiveX Control (IE)

You could subclass OleControlSite and override QueryInterface to handle
IDocHostUIHandler.  See OleControlSite.createCOMInterfaces to see how to
implement a new interface.

The IDocHostUIHandler interface is specific to the WebBrowser control.
Since OleControlSite is more general, there may need to be some new API to
allow the control site to be extended.  Alternately, since the IE control
seems to be the most popular embedded ActiveX control, perhaps SWT should
provide a specialized control site for it.  You could enter an enhancement
request against Platform SWT in bugzilla for this.

"Vlad Zelenko" <vzelenko@xxxxxxxxxxx> wrote in message
news:b817lk$hsv$1@xxxxxxxxxxxxxxxx
> Dave,
>
> If I wanted to display an Internet Explorer Control inside a (C++) Form in
a
> Windows application, I would override
"IDocHostUIHandler::ShowContextMenu()"
> method for the WebBrowser ActiveX control in order to prevent the Popup
Menu
> to display when user right-clicks.  As Veronica pointed out before, such
> override is not supported, but it is possible to change the Action of some
> menu options.
>
> Thus, I would like to know if Anyone knows if it is at all POSSIBLE to
> override/suppress PRINT option on the Popup Menu, and HOW it is done from
> inside SWT code.
>
> Thanks for any help,
>
> Vlad.
>
>