本帖最后由 scrrr888999 于 2013-01-26 15:49:41 编辑

解决方案 »

  1.   

    MSDN 说最大65536:Because the messages that indicate scroll bar position, WM_HSCROLL and WM_VSCROLL, are limited to 16 bits of position data, applications that rely solely on those messages for position data have a practical maximum value of 65,535 for the SetScrollRange function's nMaxPos parameter. 别用short, 用unsigned short
      

  2.   

    min:0 max:37565
    这是按pixel 算的吧,
    改成 按 item 算 如 listbox 一个 item 12 pixel。那就 小很多