各位好:
我用CBitmapSlider做一个播放器的进度条,当播放器缩放时,CBitmapSlider也跟着缩放,但问题是,
CBitmapSlider上加载的图片怎么也跟着缩放呢?
谢谢!

解决方案 »

  1.   

    图片绘制 用CDC::StretchBlt 
      

  2.   

    可以在CBitmapSlider里直接实现吗?
      

  3.   

    就用这个
    Copies a bitmap from a source rectangle into a destination rectangle, stretching or compressing the bitmap if necessary to fit the dimensions of the destination rectangle.  
    BOOL StretchBlt(
       int x,
       int y,
       int nWidth,
       int nHeight,
       CDC* pSrcDC,
       int xSrc,
       int ySrc,
       int nSrcWidth,
       int nSrcHeight,
       DWORD dwRop 
    );
    //
     
      

  4.   

    这个不行啊
    CBitmapSlider里直接支持吗?