A problem about IHTMLPainter in IE7



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/

.



Relevant Pages

  • Re: Success! Re: Cascading paragraphs
    ... I'm suspecting that any version of Word that has the tab ... In fact, trying to draw the ... >> to Format Autoshape. ... space between them at the bottom of the page. ...
    (microsoft.public.word.newusers)
  • Re: DrawText fails when attempting to retrieve string extents
    ... DT_CALCRECT is filling Right and Bottom to make the rectangle big enough. ... using the Sprite to draw text (see documentation about ID3DXSprite::Begin ... > RECT Rect; ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: Maple Beer Continued....
    ... Did you draw the must from the top of your pail or poured it from the bottom ... I had a braggot go strange and then bad, and the sediment at the bottom was so ... thick that it came out the spigot when I tried to draw some must to check the ... >> Is it thicker or thinner than the syrup by itself was originally? ...
    (rec.crafts.meadmaking)
  • Re: Drawing vertical string
    ... You should be able to use a rotation to have it draw "bottom to top" ... Using brush As System.Drawing.SolidBrush = New ...
    (microsoft.public.dotnet.languages.vb)
  • A way to Determine visible cells on the page
    ... I have a need to find out how many rows appear ont he users screen so i can ... draw in a border on the bottom and also to poisition the first graphic on ...
    (microsoft.public.excel.programming)