如题

解决方案 »

  1.   

    CDC::SetWindowOrg()
    CDC::SetViewport()
    CDC::SetWindowExt()
    CDC::SetViewport()
    1.Set the Viewport to the client area of the view and forget it;
    2.Set origin of Window to start of where in the Logical World you want to view;
    3.Set Window Extent to the size of the area in the Logical World you want to view;
    4.To zoom in on your figure, just decrease the extent of the Window.
    5.To pan out from the figure, just increase the extent of the Window
    6.To scroll your figure, just change the origin of the Window
      

  2.   

    你是想自己写缩放算法吗?如果不是就用StretchBlt吧,看MSDN中有讲