Click here to Skip to main content
14,272,574 members
Rate this:
Please Sign up or sign in to vote.
Hi all. I use this block of code to set a picture in IE BHO.

<br />
void* init = GetProcAddress( LoadLibrary( "atl" ), "AtlAxWinInit" );<br />
  _asm call init;<br />
  CreateWindow( "AtlAxWin", pictureURL,<br />
	  WS_CHILDWINDOW | WS_VISIBLE, posX, PosY, PosX + height, PosY + width,<br />
	  GetSafeHwnd(), 0, (HINSTANCE)GetWindowLong( GetSafeHwnd(), GWL_HINSTANCE ), 0 );<br />

Can anybody tell me why the picture is drawn with small size and there is a zoom tool when the mouse is over it. Clicking on the picture will zoom it (in or out).
Also is there another way to put a JPG or GIF picture on BHO?
thanks in advance

Thanks to Christian Graus.
Well... I c... so is it possible to show the image in smaller size than the original one without that stupid tool? :)
Updated 28-Jan-10 0:34am

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

That's just what IE does with oversize pictures, it sizes them to fit, then gives you a control to show them full size.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100