从文件中读取一个JPG的图片,然后显示,如果鼠标左键单击图片,图片扩大一倍!
这个功能怎么实现啊?
能详细点告诉我吗,谢谢了啊!!!!!!!!!
对不起啊,没多少分了啊

解决方案 »

  1.   

    如果使用IPicture::Render来显示JPG, 只要改变Render的第三和第四的参数就可以了.HRESULT Render(
      HDC hdc, //Handle of device context on which to render the image
      long x,  //Horizontal position of image in hdc
      long y,  //Vertical position of image in hdc
      long cx, //Horizontal dimension of destination rectangle
      long cy, //Vertical dimension of destination rectangle
      OLE_XPOS_HIMETRIC xSrc,
               //Horizontal offset in source picture
      OLE_YPOS_HIMETRIC ySrc,
               //Vertical offset in source picture
      OLE_XSIZE_HIMETRIC cxSrc,
               //Amount to copy horizontally in source picture
      OLE_YSIZE_HIMETRIC cySrc,
               //Amount to copy vertically in source picture
      LPCRECT prcWBounds
               //Pointer to position of destination for a metafile hdc
    );