Click here to Skip to main content
15,670,092 members
Please Sign up or sign in to vote.
5.00/5 (1 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

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

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

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900