IViewObject::Draw and advertising resizing problems



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

.



Relevant Pages

  • Still cannot resize Microsofts Web Browser Control?
    ... ability to resize Microsoft's Web Browser Control, ... The .Stop command is .SStop and the ... ..Type property is .TType. ...
    (microsoft.public.access.forms)
  • Stop flicker in web browser control on dialog
    ... Hi, ive got a dialog which contains a web browser control, but when i resize the dialog, it flickers really badly. ... Whats the best way of stopping this? ...
    (microsoft.public.vc.mfc)
  • Disabling Right Click Menu
    ... I am using the web browser control in an application i have have developed. ... I can disable this by using some scripting to capture the event, ... but when i convert to document into editing mode my setting ... Tristan ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)