A problem about IHTMLPainter in IE7
- From: 王忠@hotmail <wzhy2000@xxxxxxxxxxx>
- Date: Fri, 12 Jan 2007 11:18:44 +0900
I use IHTMLPainter to draw some shapes in IE6/7.
In IE7, some pages, for example:
http://runonce.msn.com/runonce2.aspx.
The css in this page is CSS1Compact Mode,
if the page have a horizontal scroll bar,
the method IHTMLPainter::Draw will be called in some strange parameters. for example:
Prototype: IHTMLPainter::Draw(RECT rcBounds, RECT rcUpdate, LONG lDrawFlags, HDC hdc, LPVOID pvDrawObject)
doc range: (width:800, height:600 )
window range: (width:700, height:600)
scroll pos:(horizontal :100,verticalscroll :0 )
In IE6, the rcBounds will be a rectangle (left:-100,top: 0,right: 700, bottom: 600)
but in IE7 , the rcBounds will be a rectangle(left:-100,top: 0,right: 600, bottom: 600)
so I can not draw something in the region (600,0,700,600).
It is a BUG?
-------------------------------------------------------
<wangzhong> http://www.syncplus.net/en/
.
- Prev by Date: How can I get the event when zoom percent is changed in IE7
- Next by Date: Decipher the difference between an asynchronous callback and a user clicked link in BeforeNavigate
- Previous by thread: How can I get the event when zoom percent is changed in IE7
- Next by thread: Decipher the difference between an asynchronous callback and a user clicked link in BeforeNavigate
- Index(es):
Relevant Pages
|