Questions tagged [iwebbrowser2]

178 questions
0
votes
0 answers

For SVG in CHtmlView (Web Browser control), wheel zooms in, but never out

I'm using CHtmlView (MFC wrapper class for IWebBrowser2) to show an SVG file, and wheel zoom is doing something crazy. If I hold down the Control key and spin the mouse Wheel UP, the image zooms IN at the mouse cursor, as expected. The problem is,…
0
votes
0 answers

Internet Explorer WebView UI Automation

I have a Win32 C++ application using wxWidgets. I have wxWebviewCtrl (assuming it is using Windows IWebBrowser2 interface). The requirement is to have UI automation support for IE based Webview by automation tools like Selenium or similar. I…
Anil8753
  • 2,663
  • 4
  • 29
  • 40
0
votes
1 answer

Openeing a youtube search via a link in an embedded IWebBrowser2 control fails

I have a simple IWebBrowser2 browser in my application like this one sample. We use this browser control for a research in our application to search for address information. The user may click on a button to perform a selective search for given…
xMRi
  • 14,982
  • 3
  • 26
  • 59
0
votes
0 answers

WebBrowser control works without leaks, but leaks memory in case of some Web Page

I have implemented an MFC application with n dynamic DockablePanes which host the web browser control in it. Everything works fine, there is no memory leak problem until I use these two websites: https://www.whatismybrowser.com/…
0
votes
1 answer

How to get incomplete request in web browser control?

consider below secenario... i have page called "Page.aspx" contains link for page "Page1.aspx" and "Page2.aspx" once a page.aspx is loaded i click on "Page1.aspx" before browser get response of "Page1.aspx" i click on "Page2.aspx" which in turns…
0
votes
1 answer

Get bitmap from hidden WebBrowser control (IWebBrowser2 interface aka MSHTML )

I'm interested in the render output from a WebBrowser ActiveX control. That WebBrowser is running in-process. The idea is to obtain a "screenshot" of what the control is showing. In other words: get the WebBrowser pixels. What is currently the best…
E. van Putten
  • 615
  • 7
  • 17
0
votes
0 answers

WebBrowser css not loaded

I have a complex HTML5 based user interface, which I show in my native win32 desktop application using webbrowser (Internet Explorer). I've decided to open it from local machine instead of web server. But it did not work due to various security…
0
votes
2 answers

Injected script doesn't execute even with script tags "fixed" up

I am injecting a DIV and some SCRIPT into the DOM of a document loaded into my IWebBrowser2 control. I was unable to then execute the scripts because when injected that way they're not "real" script tags. I found the solution, or so I thought, in a…
Dave
  • 1,521
  • 17
  • 31
0
votes
0 answers

c++ threads in wxwidgets and wxwebview

I want to use wxWebview to show some pages during my wxWidgets is working but I have two problems : 1 - I have to do wxWebView::LoadUrl() at the end of the program as when I code some command after it the webbrowser freezes until the commands are…
0
votes
1 answer

Qt breaks WebBrowser control somehow (Ajax is not working)

Windows 10. I have 2 applications using the same C++ library which creates WebBrowser control (Internet Explorer based control). It does not use Qt, only WinAPI. First application is raw WinAPI based C++ application which does not use Qt. A second…
Alexander Dyagilev
  • 1,139
  • 1
  • 15
  • 43
0
votes
0 answers

IWebBrowser2.ReadyState vs. IHtmlDocument2.readyState

I found that they sometimes don't correlate. For instance IWebBrowser2.ReadyState can have READYSTATE_LOADING value while IHtmlDocument2.readyState gives 'completed'. Is there anywhere documentation ? I see this behavior when I open a website in a…
NN_
  • 1,593
  • 1
  • 10
  • 26
0
votes
1 answer

IWebBrowser2 blocks IFileDialog

In our 32-bit Windows MFC application we use IWebBrowser2 to display HTML content. We also (because MFC does it for us and we're running on Windows 10) use the new IFileDialog COM interface to the common file open dialog. When we have a web browser…
Westie
  • 1
  • 1
0
votes
0 answers

MSHTML: Call a function when DOM is ready, but before javascript is evaluated

I'm working on a cross-platform webview library that uses webkit (macos/linux) and mshtml (windows). I am now trying to give users a callback that would allow them to "inject" custom javascript code into the page once it is loaded (e.g. to wrap…
zserge
  • 2,212
  • 2
  • 31
  • 40
0
votes
0 answers

IWebBrowser2 control blank - web page is not displayed

We display some web pages in our MFC application. We use an ordinary IWebBrowser2 object, and we just do a Navigate2() call to display a certain URL. But often, the page is not displayed. We just get a blank (white) control in our dialog. If we…
UglySwede
  • 429
  • 1
  • 7
  • 16
0
votes
1 answer

Determining when WebBrowser Control Started processing the HTML

Is there a way to determine when the webbrowser control starts processing the HTML of the URL it navigated to? Looking for any event raised other than onreadystatechange (which does not have clear state for this)? Ontitlechange is not accurate…
GeorgeU
  • 7,819
  • 8
  • 26
  • 38