为啥拖动滑动条之后图形会产生分离的情况?

解决方案 »

  1.   

    你绘制图形OnDraw函数有问题吧?没考虑到滚动条?
      

  2.   

    仅供参考:
    Coordinate Space and Transformation Functions
    The following functions are used with coordinate spaces and transformations.   
     
    ClientToScreen  
    CombineTransform  
    DPtoLP  
    GetCurrentPositionEx  
    GetGraphicsMode  
    GetMapMode  
    GetViewportExtEx  
    GetViewportOrgEx  
    GetWindowExtEx  
    GetWindowOrgEx  
    GetWorldTransform  
    LPtoDP  
    MapWindowPoints  
    ModifyWorldTransform  
    OffsetViewportOrgEx  
    OffsetWindowOrgEx  
    ScaleViewportExtEx  
    ScaleWindowExtEx  
    ScreenToClient  
    SetGraphicsMode  
    SetMapMode  
    SetViewportExtEx  
    SetViewportOrgEx  
    SetWindowExtEx  
    SetWindowOrgEx  
    SetWorldTransform