Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Jan : Need C++ -> Delphi conversion
| Subject: | Need C++ -> Delphi conversion |
| Posted by: | "Eddie Shipman" (eddie.shipman@no_spam_datamaxgroup.com) |
| Date: | Fri, 6 Jan 2006 15:01:30 |
CComQIPtr<IWebBrowser2> m_web_browser;
....
CComQIPtr<IOleControl> pOleControl(m_web_browser);
pOleControl->OnAmbientPropertyChange(DISPID_AMBIENT_USERMODE);
pOleControl->OnAmbientPropertyChange(DISPID_AMBIENT_DLCONTROL);
and on Invoke method, you need to "handle" DISPID_AMBIENT_DLCONTROL and
set returned value (VARIANT *pVarResult) with desired value
(DLCTL_NO_SCRIPTS, VT_I4)
Need the code above converted to Delphi.
This is supposed to prevent javascripts from working in
WebBrower.