Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: Fri, 11 Apr 2008 00:39:48 +0200,    group: microsoft.public.inetsdk.programming.webbrowser_ctl        back       


Scroll bars despite DOCHOSTUIFLAG_SCROLL_NO   
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@hoehrmann.de · 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/
date: Fri, 11 Apr 2008 00:39:48 +0200   author:   Bjoern Hoehrmann

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us