Questions tagged [iwebbrowser2]

178 questions
2
votes
0 answers

How to correctly wait for IWebBrowser2's "document complete" event in C++?

I have written a C++ class that encapsulates a web browser (inspired by this). One of the class methods takes HTML code as a string and renders it in the browser. The browser's rendering is asynchronous, and in some situations it is necessary to…
Dabbler
  • 9,733
  • 5
  • 41
  • 64
2
votes
0 answers

How can I change the useragent and referer for javascript in IWebBrowser2 in C++

I wrote a simple C++ program that opens a test page in IE window using IWebBrowser2 with my HTML header (Referer, UserAgent). Everything works fine. PHP functions on the test page show the modified headers. However, Javascript (document.referrer,…
2
votes
2 answers

Is there any way to draw Webbrowser content to a specific DC?

These days, I tries to create a hiden WebBrowser control in my program, and Using the IViewObject interface draw to my custom DC. The result is fine, I got All the content I want, but the Draw speed is unacceptable, especially some complex web pages…
Gohan
  • 2,422
  • 2
  • 26
  • 45
2
votes
1 answer

WebBrowser vs WebBrowserBase class

before i reference non .net builtin(alternatives) i would like to know about The built-in .Net Classes could offer to use : WebBrowser & WebBrowserBase Classes what i would like to know is : what are the differences between those two ? . as msdn…
LoneXcoder
  • 2,121
  • 6
  • 38
  • 76
2
votes
1 answer

How to fix javascript error in application using IWebBrowser2?

I have a C++ aplication that is using the IWebBrowser2 interface for rendering some online html pages. The problem is that when accesing a certain link I receive a javascript error, although if I am accesing that same page using Internet Explorer,…
Catalin STAICU
  • 546
  • 1
  • 4
  • 19
2
votes
1 answer

Tab key doesn't work in IWebbrowser2

I am using an ActiveX control to implement an embedded browser in an ATL app (IWebbrowser2). The problem is, that I can't jump between text fields using the tab key. Pressing the tab key just does nothing. Pressing the Enter key submits the form as…
1
vote
1 answer

Debugging javascript / html rendered with IWebBrowser2 in C++

I'm working with Pandion (open source jabber client), the C++ sets up a host for running html/javascript using IWebBrowser2. All of the program logic is implemented in js. In VS2010 if I start the application in the debugger, I can debug the C++ but…
carpat
  • 861
  • 10
  • 25
1
vote
1 answer

Using IHTMLDocument instead of IWebBrowser2

I want to display a simple web page in my Win32 application. I have read this question IWebBrowser2: how to force links to open in new window? I want to do exactly stated in the reply of the question, but havn't found a code example. Is there a…
Madhur Ahuja
  • 22,211
  • 14
  • 71
  • 124
1
vote
3 answers

C++, web browser control: cannot change encoding/charset

There's a document I'm displaying in a web browser ActiveX control hosted in a C++ app. This document has a META tag that specifies incorrect charset, so the output is funny. I know the correct encoding and want to change it programmatically to fix…
1
vote
2 answers

Can't figure out how to host web browser (e.g. IWebBrowser2) in Win32 dialog. ATL okay, no MFC

I'm attempting to host a web browser inside a dialog. I am using C++ with Win32 and ATL, no MFC. There is an ActiveX control (IWebBrowser2) that implements this functionality. The trick is it appears as though I need to create a dialog class that…
I have no cat
  • 226
  • 5
  • 13
1
vote
1 answer

Windows update KB5003637 seems to have broken WebBrowser control, does anyone know why?

The recent Windows 10 update for KB5003637 seems to have caused our use of the WebBrowser control to fail. Our applications use a C++ dialog that hosts a web browser control based on the IWebBrowser2 interface and implemented by the COM class…
1
vote
1 answer

Detecting CTRL+Click in Webbrowser Control

Ok! Here is the situation I have a application using Webbrowser Control, I want to detect the click events for anchors in web page. I dont need code, just the directions to look into. Edit I didn't find any solution for the problem but found a hack…
Rajeev
  • 4,571
  • 2
  • 22
  • 35
1
vote
1 answer

show webview/webpage window in c++ windows desktop application

I want to display a popup/notification in a c++ windows application. The notification will display a webpage from our website. I am looking for something similar to CEF but native OS APIs to display the webview content. Maybe there is some class…
Harsh
  • 65
  • 1
  • 6
1
vote
1 answer

What's the relationship between SID_STopLevelBrowser and IWebBrowser2?

In Raymond's demonstration of how to hop around some shell objects, he first obtains an IWebBrowser2 (or technically IWebBrowserApp), and then uses QueryService to get to SID_STopLevelBrowser. I was wondering if anyone can explain conceptually what…
user12381459
1
vote
0 answers

Get the process handle value of the browser window that launches in a new tab

The problem is that I want to get the handle value of the new tab created here. By default, when you get the handle value of pWebBrowser2, it gets caught as the main handle of the current window, not the new handle's unique handle. There is one…
yyms
  • 31
  • 5