Questions tagged [iwebbrowser2]
178 questions
4
votes
1 answer
IWebBrowser2 and cookies in IE
We use IWebBrowser2 to display web pages but it seems to not able to see the same cookies as normal IE sees.
For example, if I log in Facebook in IE and check on Remember Me, the next time I open IE and go to Facebook then I will still stay logged…

TopQ
- 175
- 3
- 13
4
votes
3 answers
C++ COM design. Composition vs multiple inheritance
I'm trying to embed a browser control in my application (IWebBrowser2). I need to implement IDispatch, IDocHostShowUI, IDocHostUIHandler etc to make this work. I am doing this in pure C++/Win32 api. I'm not using ATL, MFC or any other framework.
I…

Tobbe
- 3,282
- 6
- 41
- 53
4
votes
2 answers
Tab key support in an IWebBrowser2 control
I have an embedded IWebBrowser2 control using straight C++ (windowed, not windowless) and when someone hits the Tab key to go between fields in the browser, it jumps focus out of the web browser.
Any ideas on what I need to implement or what I…

Bob
- 255
- 3
- 13
4
votes
1 answer
CDialog with IWebBrowser component, backspace doesn't work
I have an MFC CDialog with an IWebBrowser2 in it. I get to a page that has a HTML text area, I can input text but backspace doesn't erase it.

in need of help
- 1,606
- 14
- 27
3
votes
2 answers
How I can get information about the scrollbars of an Webbrowser control instance or the IE Webrowser?
I need to get information about the scrollbars (position, size, visibility) of a Webbrowser control of an external application, I tried using the GetScrollBarInfo function from my previous question, but the function always return false, I checked…

Salvador
- 16,132
- 33
- 143
- 245
3
votes
0 answers
Enable local flash in IWebBrowser2 control
I'm trying to load local html pages that contain local flash components using IWebBrowser2 control.
I've put a .cfg file in C:\WINDOWS\system32\Macromed\Flash\FlashPlayerTrust with a path to the relevant directory.
These pages run just fine in IE…

Yuval
- 907
- 9
- 24
3
votes
1 answer
Why are all references to my IDispatch object not released?
I'm hosting an IWebBrowser2 control in my C++ program using nothing but plain Win32 (no mfc, atl, wtl etc). On DISPID_NAVIGATECOMPLETE2 I add a custom object to be accessed from javascript running on the displayed webpage.
To add the custom object I…

Tobbe
- 3,282
- 6
- 41
- 53
3
votes
3 answers
Passing an object from Javascript to C++
I have found Passing an array from Javascript to C++ solution, but I have another task: Passing an object from Javascript to C++ (if I use IWebBrowser2 with IDispatch)
I mean that I need call C++ method via window.external.method with JavaScript…

vinnitu
- 4,234
- 10
- 41
- 59
3
votes
1 answer
embedded web control (IWebBrowser2), embedded javascript's onkeydown and onkeyup not firing
I'm embedding a web page within my C++ program. The problem that I'm running into is that within javascript of the embedded page I can capture onkeypress, but onkeydown and onkeyup don't fire.
If I view the test HTML in a non-embedded IE (or…

Aaron
- 9,123
- 5
- 40
- 38
3
votes
0 answers
IWebBrowser2.Navigate2 fails to INET_E_RESOURCE_NOT_FOUND (0x800C0005) during a new session
In my ATL project I have the window which is a host for html browser.
I have a need to create/destroy this window during runtime.
When IWebBrowser2.Navigate2 is called third time it triggers DISPID_NAVIGATEERROR with the status…

wistful23
- 31
- 2
3
votes
3 answers
Fork or copy a users browser session in IE
Is it possible to fork a users session (or do something similar) in a Internet Explorer plugin?
I want to process the page the user is on when they click a button in the toolbar. To avoid interrupting the users browsing, I'd like to "copy"…

jumoel
- 1,770
- 1
- 13
- 21
3
votes
0 answers
IWebBrowser2 simulating left click
What I wan't to achieve is to simulate left click in web browoser created with IWebBrowser2 class.
Current code
if (SUCCEEDED(OleInitialize(NULL))){
IWebBrowser2* pBrowser2;
CoCreateInstance(CLSID_InternetExplorer, NULL,…

DarkGL
- 63
- 5
3
votes
1 answer
Why AddRef returns zero
I'm debugging C++/COM application, looking at how we AddRef and Release COM objects. I came around weird case when AddRef returns 0. Here is how I get the return value:
ULONG TraceAddRef(LPUNKNOWN pUnk, const std::string &a_msg) {
ULONG count =…

Sergey Avdeev
- 910
- 1
- 8
- 16
3
votes
2 answers
How do I render the scrollable regions of a canvas with IViewObject::Draw?
I've been trying to render the entire canvas in an IWebBrowser2 control to a bitmap. IViewObject::Draw seems to be the most promising approach, but I can't get it to render anything that would requires a scroll to show. While I could automate the…

nirvdrum
- 2,319
- 17
- 26
3
votes
1 answer
Allow popups in WPF WebBrowser
Is there a way to allow popups within embedded WPF WebBrowser control? I didn't manage to find someone elses solution, nor COM interface which enables allowing popups.
I wouldn't like to change users registry settings or use similar invasive…

Nikola Radosavljević
- 6,871
- 32
- 44