Questions tagged [iwebbrowser2]
178 questions
0
votes
1 answer
Get output from JavaScript function in C++
Hy,
I'm working at a project that must call from C++ a custom function made in JavaScript. I'm able to run the function
The project should work only on Windows (actually it's a Windows service), so it's ok to use interfaces IWebBrowser2 and…

banuj
- 3,080
- 28
- 34
0
votes
2 answers
What event/interface is used to show the IWebBrowser2 secure warning?
I am using a IWebBrowser2 control in my application and writing my own container (in C++ - No ATL/MFC allowed). The control works fine. However web sites will not show if I am going from secure to non secure. It trails back to the setting in…

Bob
- 255
- 3
- 13
0
votes
2 answers
Hide WebBrowser control
I have a Win32 application which converts HTML into an image without displaying the control. (I dont have much experience to use ActiveX in a Win32 application).
I followed this MSDN article to create the control and call Navigate():…

cHiWa
- 383
- 1
- 3
- 14
0
votes
1 answer
Session expires in embedded IWebBrowser2 upon opening another embedded IWebBrowser2 for NewWindow3 handling
I am working on a multi-threaded WTL-based application that opens multiple browser windows, each with its own embedded IWebBrowser2 instance for the browsing, and each in a separate UI thread.
In response to NewWindow3, I open a new browser-window,…

eashwar
- 1
- 1
0
votes
1 answer
Custom Download Manager IWebbrowser2
Sorry if my question is previously answered here but I have, for days, searched the internet including SO with no solution.
Basically I want to Implement Download Manager for IE webbrowser control (Not IDE itself).
I have read a lot on MSDN and…

Stefano Mtangoo
- 6,017
- 6
- 47
- 93
0
votes
1 answer
Microsoft Equivalent of WebkitGTK hovering-over-link signal
I need to add ability to catch event each time there is mouse hover event both on Linux and Windows. In Linux I easily connect to hovering-over-link signal. I cannot seem to find Windows equivalent. Searched google, checked the MSDN, I could not…

Stefano Mtangoo
- 6,017
- 6
- 47
- 93
0
votes
2 answers
How to get the screen coordinate of web-page elements in BHO
I am writing a BHO object for IE.
I want the screen position of the top-left of the web-page. How can i get this position?
The topleft of the first element in DOM returns (0,0). The webBrowser.Left or Top returns the position of the browser but not…

dattebayo
- 2,012
- 4
- 30
- 40
0
votes
1 answer
IWebBrowser2.Navigate opens second window
The following code, on Vista with Internet Explorer 7, opens two windows (the one I create, and then a second one when Navigate is called, which is the one that the file appears in). This doesn't happen in Internet Explorer 8, or on XP as far as I…
Sam Barham
0
votes
1 answer
how to access Iwebbrowser2.scripterrorssuppressed from visual studio 2008
I have Visual Studio 2008, which comes with
program files/microsoft sdks/windows/v6.0a/include/ExDisp.h
Which defines iWebBrowser2. The header file is missing many of the properties and methods documented on .NET 2+
Specifically,…

user1347717
- 31
- 3
0
votes
1 answer
IWebBrowser2 control not getting created when tried to do it in seperate thread
void CUIPopupWnd::ieThreadProc(MSG* msg, LPVOID lpParameter){
CUIPopupWnd *ptrPopUpWndCtrl = (CUIPopupWnd*)GetWindowLongPtr((HWND)msg->wParam , GWLP_USERDATA);
switch(msg->message)
{
case WM_IECREATE:
{
…

Srikanth P Vasist
- 1,327
- 2
- 14
- 26
-1
votes
1 answer
Open Mozilla Firefox with CoCreateInstance function . How do?
Good morning,
In my C++ code, I would like to open a webpage through Mozilla Firefox and no more Internet explorer. How can I do ?
std::string post = utils::to_html_string(postData);
if (SUCCEEDED(OleInitialize(NULL)))
{
IWebBrowser2* …

user2274060
- 896
- 5
- 18
- 35
-1
votes
2 answers
wxWebView Page Load Fails with no Internet Connection
I am writing a windows application that uses a wxWebView (Trident) to display pages served from an internal server that binds to the localhost interface on an ephemeral port. I have run into a problem where, if the host computer does not have any…

Jon Trauntvein
- 4,453
- 6
- 39
- 69
-3
votes
1 answer
IWebBrowser2 is navigation complete? - C++ WinAPI
I need to get the Url of the current page, I do it via get_LocationUrl, but first I need to find out, as the documentation says "is navigation complete", but I just don't understand how? Without using MFC or ATL.

adziri
- 291
- 3
- 15