Questions tagged [iwebbrowser2]
178 questions
1
vote
2 answers
C++ - IWebBrowser2 - Javascript is not activated
I've tested the project code from 'codeproject.com' website (https://www.codeproject.com/Articles/3365/Embed-an-HTML-control-in-your-own-window-using-pla)
This is a part of the code :
long EmbedBrowserObject(HWND hwnd)
{
IOleObject …

user2274060
- 896
- 5
- 18
- 35
1
vote
1 answer
How can I access the JavaScript global object ("window") inside an embedded browser object (the IWebBrowser2 interface)?
I have an HTML page which embeds an IWebBrowser2 ActiveX (i.e. the control is essentially an Internet Explorer browser). I need to write JavaScript in this HTML page which will remove any window.onresize handler from the page loaded in the…

John Factorial
- 155
- 11
1
vote
2 answers
Specify User Agent for WPF WebBrowser Control
I need to alter the default User Agent used by the WPF WebBrowser control. I have looked at the properties of the IWebBrowser2 object behind the control, and tried specifying the user agent by specifying it when calling "Navigate" as Suggested…

spaetzel
- 1,252
- 3
- 16
- 23
1
vote
1 answer
IWebbrowser2: Using a Uint8array (filling without looping)
I can create a Uint8array in an IWebbrowser2 window:
IHTMLWindow2 window = ...;
DISPID dispid_uint8array = ...;
VARIANT self;
self.vt = VT_NULL;
VARIANT length;
length.vt = VT_I4;
length.lVal = 100;
VARIANT args[2] = { self, length };
DISPID…

Kijewski
- 25,517
- 12
- 101
- 143
1
vote
1 answer
msLaunchUri not working from WebBrowser Control
Setup: Windows 10 with IE 11. WebBrowser control in compatibility mode 11011 (11 Forced).
When used from the WebBrowser control navigator.msLaunchUri is defined but it fails to do anything and does not even call the 'fail'…

donaddon
- 413
- 2
- 13
1
vote
0 answers
IWebBrowser2 textbox watermark removal
I have a native C++ app that authenticates a user using OAuth2 with various providers, which simply pops up a browser (IWebBrowser2) navigating to the target authentication server. Everything works well, but I have not been able to determine why…

Jeff
- 2,495
- 18
- 38
1
vote
1 answer
IWebBrowser2 seemingly not executing javascript
Users of our program occasionally have to download databases from a third-party website that requires them to log-in and specify parameters to get the correct database. I am trying to incorporate this into our program so that users don’t have to…

hairbagPaul
- 33
- 4
1
vote
3 answers
How to make a webbrowser in C++ without dependencies?
How can I use IE control or some kind of webbrowser in c++ but without any external dependencies? I mean can be done with pure win api or something like that?
I know the basics of c++ and the methods I know to use the webbrowser control needs the…

gtilx
- 2,055
- 4
- 17
- 21
1
vote
1 answer
Can IWebBrowser2 store cookies in a user specified folder?
I am working on a small web browser on c++ using IWebBrowser2, the problem is that when I delete cookies on my browser, they get deleted for IE, and I dont want to interfere with IE cookies. Is there a way to solve this?

gtilx
- 2,055
- 4
- 17
- 21
1
vote
0 answers
IWebBrowser Paint to HDC IViewObject Draw
How do I make this method work? IViewObject::Draw returns S_OK but there's no way to paint it on the HDC all I get is a black page.
My code snippet
IEInit();
//visit the giving url of the image
BSTR bstrURL = SysAllocString(L"example.com");
hr =…

Mrdobe
- 21
- 1
- 4
1
vote
1 answer
How to get my IHttpNegotiate implementation called by IWebBrowser?
I use cwebpage_src code and I need to update some HTTP request headers while clicking on links. As I understand it can be done with self implementation of IHttpNegotiate->BeginTransaction. But how to get my IHttpNegotiate implementation…

C0x
- 105
- 12
1
vote
1 answer
How do I programatically change printer settings with the WebBrowser control by using c++?
I use IWebBrowser2 in my simple win32-application. I want programatically get and set printer settings like page size or page orientation.
I have found a lot of examples with using C# or VB, but no one for C++.
Perfect variant would be with using…

Константин Савельев
- 53
- 5
1
vote
0 answers
Canceling all existing HTTP requests in Internet Explorer/IWebbrowser
I'm automating an Internet Explorer window using the IWebBrowser API. Is there a way to cancel all outstanding HTTP requests in IE/IWebbrowser?
I've tried the following and none of them work.
Calling IWebBrowser::Stop(). This only cancels…

watsonmw
- 321
- 2
- 13
1
vote
0 answers
does JavaFx Webview shares cookies with native OS Browser windows platform
I want to ask a question that does JavaFX webview shares authentication cookies(persistent cookies that are created by the IE/Default browser)?
The reason why I am asking this question is I have an application that is using IWebbrowser2 control and…

user2724058
- 318
- 5
- 20
1
vote
0 answers
EventSinkMap does not capture message from CWebBrowser2
I am trying to capture messages sent from CWebBrowser2 Object.
m_WebBrowser.Create(_T(""), _T(""), WS_VISIBLE, rect, this, 1, NULL);
m_WebBrowser.Navigate(_T("www.test.com"), NULL, NULL, NULL, NULL);
m_WebBrowser.SetDlgCtrlID(1000);
My…

Alexander Demerdzhiev
- 1,034
- 2
- 14
- 29