IViewObject::Draw and advertising resizing problems
- From: "rob" <robdev21@xxxxxxxxx>
- Date: 26 Jul 2005 13:21:13 -0700
Hello, I am trying to use IViewObject::Draw to capture an miniature
image of a web page that is loaded in a web browser control.
Everything works OK except that some advertisements on the page don't
size their contents correctly. For example, the total size of the ad
on the resulting image is correct, but the content of the ad remains
its original size.
For example, if the ad area in the web browser control is 200x200 and
if the ad area on the resulting resized image is 100x100, the 100x100
area just shows the first 100x100 pixels of the original ad image [i.e.
the upper left quarter], rather than a resized version of the entire
200x200 ad in the 100x100 area.
My IViewObject::Draw is pretty straightforward and there is nothing
special surrounding it:
hr = pIViewObject->Draw(DVASPECT_CONTENT, -1, NULL, NULL, hdc, hdc,
&rcBounds, NULL, NULL, 0);
I've played around with mapping modes and things like that but have
been unable to get a combination that will resize the ads correctly.
Is there something that I need to redo to enable the ads to know to
resize themselves when they draw or something else that I might be
doing incorrectly?
Any help appreciated.
Thanks!
Rob
.
- Prev by Date: Using IMoniker to download files?
- Next by Date: Forms and Internet Explorer
- Previous by thread: Using IMoniker to download files?
- Next by thread: Forms and Internet Explorer
- Index(es):
Relevant Pages
|
|