Scroll bars despite DOCHOSTUIFLAG_SCROLL_NO
- From: Bjoern Hoehrmann <bjoern@xxxxxxxxxxxx>
- Date: Fri, 11 Apr 2008 00:39:48 +0200
Hi,
http://iecapt.cvs.sourceforge.net/iecapt/IECapt/IECapt/IECapt.cs -- I
am hosting Internet Explorer in a C# application to draw renderered web
pages onto image files. Even though I set DOCHOSTUIFLAG_SCROLL_NO some
web pages have a scroll bar, for example ('404' is any or no image):
<html>
<head><title>...</title></head>
<body><h1><img src='404' /></h1></body>
</html>
I found that the scroll bars can be removed (with IE6):
* Using <body scroll=no> in the source
* By adding the same dynamically, but only in quirks mode
* By adding html { overflow: hidden } in standards mode,
* By adding body { overflow: hidden } in quirks mode.
* Setting doc.documentElement.style.overflow = 'hidden'
This is all a bit odd, and I do not have this problem when using the C++
version of the program, which essentially bypasses the ActiveX wrapper.
I would like to have no scroll bars without mutating the document, how
can I accomplish that? (Build instructions for the C# version are on the
http://iecapt.sf.net/ page).
Thanks,
--
Björn Höhrmann · mailto:bjoern@xxxxxxxxxxxx · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/
.
- Prev by Date: How about using webbrowser control as a spider engine? I want advises.
- Next by Date: catch the url clicked in MSN pop window?
- Previous by thread: How about using webbrowser control as a spider engine? I want advises.
- Next by thread: catch the url clicked in MSN pop window?
- Index(es):