我视图继承了CScrollView,在拖动滚动条时我发现返回的位置值不能超过32K,这是为什么??????是否存在这个限制,如果存在这个限制,怎么突破这个限制????

解决方案 »

  1.   

    查找了关于WM_HSCROLL的说明:
    Note that the WM_HSCROLL message carries only 16 bits of scroll box position data. Thus, applications that rely solely on WM_HSCROLL (and WM_VSCROLL) for scroll position data have a practical maximum position value of 65,535. 
    ===未经证实,仅供参考!===
      

  2.   

    因为它是用short型的变量存储位置的。
      

  3.   

    可以在codeproject上有一个例子,可以解决
      

  4.   

    用SetScrollInfo() & GetScrollInfo()设置